From 3a712630843a9c24d70b1096e20114d7d4c8d243 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Mon, 9 Oct 2023 08:50:14 +0800 Subject: [PATCH 1/3] ATRP @wxy https://linux.cn/article-16266-1.html --- ...230704.0 ⭐️⭐️ Using ls Command in Linux.md | 261 ++++++++++++++++++ ...230704.0 ⭐️⭐️ Using ls Command in Linux.md | 258 ----------------- 2 files changed, 261 insertions(+), 258 deletions(-) create mode 100644 published/20230704.0 ⭐️⭐️ Using ls Command in Linux.md delete mode 100644 sources/tech/20230704.0 ⭐️⭐️ Using ls Command in Linux.md diff --git a/published/20230704.0 ⭐️⭐️ Using ls Command in Linux.md b/published/20230704.0 ⭐️⭐️ Using ls Command in Linux.md new file mode 100644 index 0000000000..ed490a8c78 --- /dev/null +++ b/published/20230704.0 ⭐️⭐️ Using ls Command in Linux.md @@ -0,0 +1,261 @@ +[#]: subject: "Using ls Command in Linux" +[#]: via: "https://itsfoss.com/ls-command/" +[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/" +[#]: collector: "lkxed" +[#]: translator: "ChatGPT" +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-16266-1.html" + +Linux 中的 ls 命令使用教程 +====== + +![][0] + +> ls 属于 Linux 中那些简单又常用的命令之一。在本教程里,你将学到如何高效使用它。 + +对我个人而言,`ls` 无疑是 [最常被使用的 Linux 命令][1],因为我们总是借助它 [列出目录内的内容][2] 来检验上一步操作的结果。 + +`ls` 命令是 “列表List” 的缩写,其功能就是列出你指定目录下的所有内容。 + +我将在本教程中,通过一系列的实例,带你一步步掌握 `ls` 命令的使用。 + +另外也会给出一些练习题,以检验你的学习成果。 + +### 如何运用 ls 命令 + +要使用 `ls` 命令,你只需遵循以下简单的命令格式: + +``` +ls [OPTIONS] Targeted_Directory +``` + +这里, + +- `[OPTIONS]`:用来改变 ls 命令的默认行为。 +- `Targeted_Directory`:在这里输入目录名或目录的绝对路径。 + +你可能会想,如果没有任何选项地使用 `ls` 命令会发生什么。为了回答这个问题,我在当前工作目录中使用了 `ls` 命令: + +![使用 ls 命令列出工作目录的内容][3] + +如你所见,它列出了当前工作目录中所有可用的目录和文件。但你可以做的远不止于在当前工作目录中获取名称和文件。 + +接下来让我给你展示一下。 + +#### 1、列出带有所有权的文件和目录 + +`ls` 命令的重要用途之一就是查出具体的文件或目录的权限以及所有权信息。 + +这就需要你在使用 `ls` 命令时,带上 `-l` 选项(这也被称为长列表格式): + +``` +ls -l +``` + +执行该命令后,你会看到类似的输出: + +``` +$ ls -lh +-rwxrw-r-- 1 sagar sagar 666M Dec 10 18:16 Fedora.iso +``` + +注意到我是同时使用了 `–h` 选项吗?我们稍后会详细说明这个。 + +如果目前为止的输出结果看起来太复杂,那就让我来帮你简化一下: + +![利用 ls 命令在 Linux 中解读文件权限和所有权][4] + +如你所见,每个文本块都有特定的含义,它们分别对应文件拥有者、组和其他用户的各项权限。 + +对于想对文件权限有更深入理解的朋友,我推荐你阅读 [我们关于 Linux 文件权限的详尽指南][5]。 + +#### 2、获取以人类可读的方式显示的信息 + +默认状态下,文件大小以字节为单位显示,显然不是最佳的查阅方式。那如果想以更易读的方式来得知相同的信息,我们怎么做呢? + +其实很简单。你只需使用 `-h` 选项与 `ls` 命令配合: + +``` +ls -l -h +``` + +接下来,我们比较下默认显示状态和可读性更强的显示方式的区别: + +![以人类可读的方式通过 ls 命令列出文件][6] + +明显更好了,对吧? + +> 💡 尽管 `ls` 命令很好地展示了文件大小,但它并不能告诉你文件夹的大小,普遍情况都会显示为 4K(LCTT 译注:这其实是“目录”这个文件所占用的大小,而不是该目录下文件的总计大小。)。如果需要了解文件夹的大小,那么你可以尝试使用 `du` 命令。 + +#### 3、列出隐藏文件 + +和其他所有文件管理器一样,`ls` 命令在默认情况下并不会显示隐藏文件(这正是隐藏文件的意义所在,对吧?)。 + +那么,如果你期望在常规文件之外,一并 [列出隐藏文件][7] 呢?只需在使用 `ls` 命令时带上 `-a` 选项就行: + +``` +ls -a +``` + +你会注意到,以 `.` 开头的文件名就是所谓的隐藏文件。 + +![用 ls 命令在 Linux 终端列出隐藏文件][8] + +> 💡 你还可以使用 `ls -A`,它的功能与 `ls -a` 类似,但它不包括 `.` 和 `..` 这两个目录。 + +#### 4、递归列出文件 + +事实上,有 [多种方法可以递归列出文件][9],使用 `ls` 命令就是其中之一。 + +如果你还不清楚,递归列出文件就是指展示所有子目录中的文件,直到每个子目录的最深层次。 + +你可以通过使用 `-R` 参数来递归列出文件: + +``` +ls -R +``` + +![在 Linux 中使用 ls 命令递归列出文件][10] + +这种方式实际上为你展示了当前目录的结构,我个人非常喜欢这种方式,但你需要先进行安装。 + +> 💡 其实你并不需要进入某个目录才能查看其内容,你可以直接通过提供它的绝对路径或相对路径来列出目录内容,比如:`ls /var/log`。 + +#### 5、在使用 ls 时对文件和目录做区分 + +通常,不同的颜色就足以区分文件和目录。但是如果你基于某种原因需要给文件和目录添加符号标识,这就有一个办法。 + +在 `ls` 命令中,使用 `-F` 选项,它会在每个目录名末尾添加一个正斜杠 `/`: + +``` +ls -F +``` + +![使用 ls 命令在文件和目录间做区分][11] + +#### 6、列出指定扩展名的文件 + +有些情况下,你可能只希望列出具有特定扩展名的文件,实际上,这是最简单的操作之一。 + +做到这一点,你无需使用任何选项。只需在星号 `*` 后附上文件扩展名,如 `*.png`,`*.txt` 等: + +``` +ls *.extension +``` + +例如,如果我只想列出 ISO 文件,那么我将使用以下命令: + +``` +ls *.iso +``` + +![列出特定扩展名的文件][12] + +#### 7、基于大小对输出内容排序 + +若希望基于文件大小来对输出内容排序,你需要使用 `-S` 选项,它会以从大到小的方式(降序)列出文件: + +``` +ls -lhS +``` + +![使用 ls 命令基于文件大小排序][13] + +相反,如果你想颠倒这个顺序,使得最小的文件首先被列出,你可以利用 `-r` 选项来实现反向排序: + +``` +ls -lhSr +``` + +![使用 ls 命令从小到大排序文件][14] + +#### 8、根据日期和时间排序文件 + +`ls` 命令在列出的内容中包括文件的修改时间。 + +如果你希望最新的文件最先被列出,可以使用 `-t` 选项,如下所示: + +``` +ls -lht +``` + +![使用 ls 命令最先列出最新文件][15] + +你也可以像我前面提到的那样,在这里使用 `-r` 选项进行反转排序。 + +``` +ls -lrt +``` + +这会使得最近修改的文件在列表的底部显示,当目录中存在大量文件,而你希望查看最近被修改过的文件时,这一命令会特别有用。我在解决我的软件项目问题时就经常用到它。 + +![使用 ls -lrt 命令][16] + +### 让我们来总结一下至此你已经学习到的! + +下面,我会共享一个表列出本教程中介绍过的一些与 `ls` 命令一起使用的选项: + +| 命令 | 描述 | +| :- | :- | +| `ls -l` | 长格式列出文件和目录 | +| `ls -lh` | 以人类可读的方式显示信息 | +| `ls -a` | 在列出的内容中包括隐藏文件 | +| `ls -R` | 递归列出文件 | +| `ls -F` | 在目录名后添加正斜杠 | +| `ls *.ext` | 列出具有特定扩展名的文件 | +| `ls -lS` | 根据文件大小排序 | +| `ls -lt` | 根据修改时间排序 | +| `-r` | 反转排序顺序(与 `-S` 或 `-t` 结合使用) | + +### 🏋️ 并练习你所学 + +实践你所学总是一个好主意,这就是我们在每一份终端指南中都试图添加实践部分的原因。 + +所以,这里有一些关于 `ls` 命令的简单练习: + +- 列出 `/var/log` 的内容 +- [将命令的输出][17] 保存到名为 `output.txt` 的文件中 +- 找出最近的 3 个文件(使用基于时间的排序) +- 基于大小显示文件,但排序方式要反转 +- 检查是否存在任何隐藏文件 + +这些练习对你来说会很有帮助。期待之后更多关于 Linux 命令的学习。 + +如果你是初次接触终端,别忘了关注我们的终端基础系列。 + +祝你日有进益 :) + +*(题图:MJ/8fb35776-5192-43ca-b96d-31bbd77c3318)* + +-------------------------------------------------------------------------------- + +via: https://itsfoss.com/ls-command/ + +作者:[Sagar Sharma][a] +选题:[lkxed][b] +译者:[ChatGPT](https://linux.cn/lctt/ChatGPT) +校对:[wxy](https://github.com/wxy) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://itsfoss.com/author/sagar/ +[b]: https://github.com/lkxed/ +[1]: https://itsfoss.com/essential-ubuntu-commands/ +[2]: https://itsfoss.com/list-directory-content/ +[3]: https://itsfoss.com/content/images/2023/07/use-the-ls-command-to-list-the-contents-of-the-working-directory.png +[4]: https://itsfoss.com/content/images/2023/07/explain-read-write-permissions-in-linux-filesystem.png +[5]: https://linuxhandbook.com:443/linux-file-permissions/ +[6]: https://itsfoss.com/content/images/2023/07/list-files-using-the-ls-command-in-human-readable-format.png +[7]: https://itsfoss.com/show-hidden-files-linux/ +[8]: https://itsfoss.com/content/images/2023/07/list-hidden-files-in-Linux-terminal-using-the-ls-command.png +[9]: https://linuxhandbook.com:443/list-files-recursively/ +[10]: https://itsfoss.com/content/images/2023/07/list-files-recursilvely-in-Linux-using-the-ls-command.png +[11]: https://itsfoss.com/content/images/2023/07/differenciate-between-files-and-directories-while-using-the-ls-command.png +[12]: https://itsfoss.com/content/images/2023/07/list-files-of-a-specific-file-extensions.png +[13]: https://itsfoss.com/content/images/2023/07/sort-files-based-on-their-file-size-using-the-ls-command.png +[14]: https://itsfoss.com/content/images/2023/07/sort-files-from-smallest-to-largest-using-the-ls-command.png +[15]: https://itsfoss.com/content/images/2023/07/show-newest-files-first-while-using-the-ls-command.png +[16]: https://itsfoss.com/content/images/2023/07/output_for_ls_-lrt-1.png +[17]: https://itsfoss.com/save-command-output-to-file-linux/ +[0]: https://img.linux.net.cn/data/attachment/album/202310/08/200201p8sfy8shyyyspxxx.jpg \ No newline at end of file diff --git a/sources/tech/20230704.0 ⭐️⭐️ Using ls Command in Linux.md b/sources/tech/20230704.0 ⭐️⭐️ Using ls Command in Linux.md deleted file mode 100644 index cde2d47ece..0000000000 --- a/sources/tech/20230704.0 ⭐️⭐️ Using ls Command in Linux.md +++ /dev/null @@ -1,258 +0,0 @@ -[#]: subject: "Using ls Command in Linux" -[#]: via: "https://itsfoss.com/ls-command/" -[#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/" -[#]: collector: "lkxed" -[#]: translator: " " -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -Using ls Command in Linux -====== - -In my opinion, the ls command is the [most used Linux command][1] as it is often used to verify the outcome of the previous operation by [listing the directory contents][2]. - -The ls command stands for a list; all it does is list the contents of the specified directory. - -In this tutorial, I'll walk you through multiple examples of using the ls command. - -I will also share some practice questions to test the learnings. - -### How to use the ls command - -To use the ls command, you'd have to follow the simple command syntax: - -``` -ls [OPTIONS] Targeted_Directory -``` - -Here, - -- `[OPTIONS]`: It is used to tweak the default behavior of the ls command. -- `Targeted_Directory`: This is where you provide the directory name or the absolute path to the directory. - -You might wonder what happens when you use the ls command without any options. And to answer that, I used the ls command in my current working directory: - -``` -ls -``` - -![use the ls command to list the contents of the working directory][3] - -As you can see, it listed all the directories and files available in the current working directory. But you can do a lot more than just getting the names and files present in the current working directory. - -Let me show you how. - -#### 1. List files and directories with ownership - -One of the primary use of the ls command to find the permissions and ownership of a particular file or a directory. - -For that you'd have to use the `-l` option (also called long listing) with the ls command: - -``` -ls -l -``` - -Once you do that, you can expect similar output: - -``` -[email protected]:~$ ls -lh --rwxrw-r-- 1 sagar sagar 666M Dec 10 18:16 Fedora.iso -``` - -Notice how I used an addition `-h` option? I'll discuss it in the next section. - -For now, if the output looks too complicated, then let me simplify things for you: - -![explain read write permissions with file ownership in Linux using the ls command][4] - -As you can see, each text block has its own meaning such as the permissions for owner, group, and others. - -If you want to dive deep into file permissions, I would recommend [our detailed guide on file permissions in Linux:][5] - -#### 2. Get information in a human-readable format - -By default, the file size is shown in bytes which is not the best way to know your file size. So how do you get the same info but in human-readable form? - -Simple. You use the `-h` option with the ls command: - -``` -ls -l -h -``` - -And here's the comparison between the default and the human-readable form: - -![list files using the ls command in human readable format][6] - -Much better. Isn't it? - -> 💡 The ls command is good to see the file sizes. However, it won't give you the directory size which is almost always displayed as 4K. To get directory size, use the du command. - -#### 3. List hidden files - -Like any other file manager, the ls command won't list the hidden files (I mean they are supposed to be hidden. Right?). - -But what if you want to [list the hidden files][7] along with the regular files? To do so, you can use the `-a` option: - -``` -ls -a -``` - -As you can see, the filename starting with a dot `.` are hidden files. - -![list hidden files in Linux terminal using the ls command][8] - -> 💡 You may also use`ls -A`which works almost the same as`ls -a`except it won't include the`.`and`..`directories. - -#### 4. List files recursively - -There are [multiple ways to list files recursively][9] and using the ls command is one of them. - -In case you don't know, listing files recursively means listing files of all the sub-directories present until the last element of every sub-directory is shown. - -And to list files recursively, you can use the `-R` flag as shown: - -``` -ls -R -``` - -![list files recursilvely in Linux using the ls command][10] - -In a way, it gives you the current directory structure. Personally, I prefer the for this purpose but you'll have to install it first. - -> 💡 You don't have to be in the directory to list its content. You can also list directory contents by providing its absolute or relative path like this:`ls /var/log` - -#### 5. Differentiate between files and directories while using ls - -While the different colors for files and directories should do the job. But due to some reason, if you want to symbolize files and directories here you have it. - -In the ls command, you have a `-F` flag that adds a forward slash `/` to every directory name: - -``` -ls -F -``` - -![differenciate between files and directories while using the ls command][11] - -#### 6. List only files with certain file extensions - -There are times when you only want to list files with specific file extensions and trust me this is the easiest of all. - -To do that, you don't have to use any options. Just append the file extension to the Asterisk `*` such as `*.png`, `*.txt`, etc: - -``` -ls *.extension -``` - -For example, if I only want to list the ISO files, then, I will be using the following command: - -``` -ls *.iso -``` - -![list files of a specific file extensions][12] - -#### 7. Sort output based on size - -To sort the output based on the file size, you'd have to use the `-S` flag and it will list files from largest to the smallest manner (descending): - -``` -ls -lhS -``` - -![sort files based on their file size using the ls command][13] - -Similarly, if you want to reverse this order to list the smallest files first, you can use the `-r` flag to reverse the order: - -``` -ls -lhSr -``` - -![sort files from smallest to largest using the ls command][14] - -#### 8. Sort files based on date and time - -The ls commands includes the modified time in its listing. - -To list the newest files first, you can use the `-t` flag as shown: - -``` -ls -lht -``` - -![show newest files first while using the ls command][15] - -You can use the `-r` flag as I explained previously to reverse the order here too. - -``` -ls -lrt -``` - -This will give you the latest modified files at the bottom of the display. This is particularly helpful if you have too many files in the directory and want to see which files were modified recently. I used this while troubleshooting my software project. - -![Using ls -lrt command][16] - -### Let's summarize what you've learned so far! - -Here, I will share a table with multiple options that were used with the ls command in this tutorial: - -| Command | Description | -| :- | :- | -| `ls -l` | Long list of files and directories | -| `ls -lh` | Prints information in human-readable form | -| `ls -a` | Include hidden files in listing | -| `ls -R` | List files recursively | -| `ls -F` | Add a forward slash to the directory name | -| `ls *.ext` | List files having specific extensions | -| `ls -lS` | Sort files based on file size | -| `ls -lt` | Sort files based on time | -| `-r` | Reverse the sorting (combined with S or t) | - -### 🏋️ And practice your learning - -Practicing what you've learned is always a good idea, which is why we try to add a practice section in each terminal guide. - -So here are some simple practice exercise of the ls command: - -- List the contents of the `/var/log` -- [Save the command output][17] in a file named output.txt -- Identify the 3 most recent files (Use time based sorting) -- Display the files based on their size but in reverse order -- Check if there are any hidden files - -That would be good practice for you. Stay tuned for more Linux command learning. - -And if you are new to the terminal, don't forget to follow our Terminal Basics series - -Enjoy :) - --------------------------------------------------------------------------------- - -via: https://itsfoss.com/ls-command/ - -作者:[Sagar Sharma][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://itsfoss.com/author/sagar/ -[b]: https://github.com/lkxed/ -[1]: https://itsfoss.com/essential-ubuntu-commands/ -[2]: https://itsfoss.com/list-directory-content/ -[3]: https://itsfoss.com/content/images/2023/07/use-the-ls-command-to-list-the-contents-of-the-working-directory.png -[4]: https://itsfoss.com/content/images/2023/07/explain-read-write-permissions-in-linux-filesystem.png -[5]: https://linuxhandbook.com:443/linux-file-permissions/ -[6]: https://itsfoss.com/content/images/2023/07/list-files-using-the-ls-command-in-human-readable-format.png -[7]: https://itsfoss.com/show-hidden-files-linux/ -[8]: https://itsfoss.com/content/images/2023/07/list-hidden-files-in-Linux-terminal-using-the-ls-command.png -[9]: https://linuxhandbook.com:443/list-files-recursively/ -[10]: https://itsfoss.com/content/images/2023/07/list-files-recursilvely-in-Linux-using-the-ls-command.png -[11]: https://itsfoss.com/content/images/2023/07/differenciate-between-files-and-directories-while-using-the-ls-command.png -[12]: https://itsfoss.com/content/images/2023/07/list-files-of-a-specific-file-extensions.png -[13]: https://itsfoss.com/content/images/2023/07/sort-files-based-on-their-file-size-using-the-ls-command.png -[14]: https://itsfoss.com/content/images/2023/07/sort-files-from-smallest-to-largest-using-the-ls-command.png -[15]: https://itsfoss.com/content/images/2023/07/show-newest-files-first-while-using-the-ls-command.png -[16]: https://itsfoss.com/content/images/2023/07/output_for_ls_-lrt-1.png -[17]: https://itsfoss.com/save-command-output-to-file-linux/ From cb7ffce4146dcbf5a518ea7372514d093abe280e Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Mon, 9 Oct 2023 10:09:11 +0800 Subject: [PATCH 2/3] AT --- ... Open-Source App Helps You Stay Focused.md | 93 +++++++++---------- 1 file changed, 44 insertions(+), 49 deletions(-) diff --git a/sources/news/20231007 This Open-Source App Helps You Stay Focused.md b/sources/news/20231007 This Open-Source App Helps You Stay Focused.md index 604e0e4afc..b9cff3c7d4 100644 --- a/sources/news/20231007 This Open-Source App Helps You Stay Focused.md +++ b/sources/news/20231007 This Open-Source App Helps You Stay Focused.md @@ -2,106 +2,101 @@ [#]: via: "https://news.itsfoss.com/pomatez/" [#]: author: "Sourav Rudra https://news.itsfoss.com/author/sourav/" [#]: collector: "lujun9972/lctt-scripts-1693450080" -[#]: translator: " " +[#]: translator: "ChatGPT" [#]: reviewer: " " [#]: publisher: " " [#]: url: " " -This Open-Source App Helps You Stay Focused +开源应用 Pomatez 使你保持专注 ====== -Get a boost of productivity with the time management benefits of Pomatez -app. -Are you familiar with the 'Pomodoro Technique'? -Well, it is **a time management method** developed in the late 1980s that uses a timer to break work into set intervals, usually 25 minutes, followed by short breaks, then repeat until the task is done. +> Pomatez 应用可以提升你的效率,它为你的时间管理带来了巨大帮助。 -This has been growing in popularity over the years, with various apps featuring the [Pomodoro Technique][1] as their main selling point. +你是否对 “番茄工作法” 有所了解呢? -Here, we will be covering one such app that is **available natively for Linux** , called ' **Pomatez** '. It is **an open-source app** that features all the tools required to follow such an approach for time management. +这是一种 **时间管理方法**,于 1980 年代末期开发,通过定时器将工作划分为一定的时间间隔,每间隔 25 分钟后进行短暂的休息,如此循环直至任务完成。 -You know this is not the first time we are covering an app like this, there's an app called ' **[Reminders][2]'** that serves a similar purpose, though without the Pomodoro approach. +这种方法在近些年变得越来越流行,有很多应用程序以 [番茄工作法][1]Pomodoro Technique 作为主要的卖点。 -![][3] +这里我们将介绍一个采用这种方法的应用,它名为 “Pomatez”,并且是 **原生支持 Linux 平台的开源应用**。Pomatez 为时间管理提供了所需的全部工具。 -Let me highlight what you can do with the Pomatez app. +其实这并不是我们第一次介绍这种应用,之前有一种应用叫 “Reminders”,功能类似,但并未采用番茄工作法。 -### Pomatez: Overview ⭐ +> **[Reminders:一个漂亮的开源 Linux 应用,可帮助你完成工作][2]** + +现在我来详述一下你可以用 Pomatez 应用做些什么。 + +### Pomatez: 概述 ⭐ ![][4] -Written in the [**TypeScript**][5] programming language, Pomatez is **a neat tool for staying focused while also taking those much-needed breaks** during important tasks. +Pomatez 使用 TypeScript 编程语言编写,是一款极好的工具,能让你在执行重要任务的同时安排适时的休息,保持专注。 -Some of its key features include: +Pomatez 的关键特性包括: - * **Built-in Task Lists** - * **Desktop Notifications** - * **Customizable Rules** + * 内置的任务列表 + * 桌面通知 + * 可定制的规则 +#### 初次使用感受 👨‍💻 +我在我的 Ubuntu 22.04 LTS 系统上安装了它,体验了它的功能表现。 -#### Initial Impressions 👨‍💻 +首先,我在 “任务列表Task List” 部分填充了一些当日必须完成的重要任务和一些不太重要的任务。 -I set it up on my [Ubuntu 22.04][6] LTS system to see what it had to offer. - -First and foremost, I populated the ' **Task List** ' section with some super important tasks and some unimportant tasks that I wanted to accomplish before the end of the day. - -Take a look, you won't be disappointed 👇 +一切就绪后,你将不会感到失望的 👇 ![][7] -Then, I headed over to the ' **Config** ' tab, where I could tweak the rules according to my preference. +然后,我进入 “配置Config” 栏,按照自己的喜好进行了规则调整。 -The ' **Stay focus** ' was for setting the task duration, the ' **Short break** ' was to set a short time off, ' **Long break** ' for a longer time off, and ' **Session rounds** ' to set the number of sessions for the timer. +“保持专注Stay focus” 为执行任务的时间长度,“短暂休息Short break” 为短暂的休息时间,“长休息Long break” 为更长的休息时间,以及 “会话轮次Session rounds” 为定时器的会话数量。 -[via GIPHY][8] - -There was even a ' **Special Breaks** ' section that could be used to set specific breaks such as lunch, dinner, or whatever you want. +这里还有一个 “特殊休息Special Breaks” 部分,可以用来安排比如午餐、晚餐的特定休息时间。 ![][9] -Next, I proceeded to the ' **Timer** ' section, where I was shown the first task at hand, with the number of sessions being shown below along with the controls to handle the timer/session. +接下来,我进入 “计时器Timer” 栏,此处显示了首个待处理任务,一列显示的是会话数以及控制定时器/会话的选项。 -There was a button to reset the timer, one to start/stop the timer, another to go into the next phase per the rules. Another one for changing the volume, and a button to go into the ' **Compact mode** ' (at the bottom right). +这里有一个重置定时器的按钮,一个开始/停止定时器的按钮,一个按规则进入下一阶段的按钮,一个调节音量的按钮,以及一个切换至 “精简模式Compact mode”(位于右下角)的按钮。 ![][10] -I started the timer by using the 'Play' button, and proceeded to check out the possible actions for the task. I can mark it as 'Done', skip it, or even delete it from the app. +我按下 “开始” 按钮启动了定时器,并开始查看了任务的可执行操作。我可以标记任务为 “完成Done”,跳过任务,或者从应用中删除任务。 ![][11] -As the task progressed, I switched Pomatez into the **'Compact mode** ' by using the button with a box/downwards arrow logo. +随着任务的推进,我通过按下带一个框和向下箭头图标的按钮,将 Pomatez 切换到了 “精简模式Compact mode”。 -Doing that gave me a smaller, more space-conscious interface. After I was done with the task, I stopped the timer and marked the task as 'Done'. +这样我得到了一个更小巧的,节省空间的界面。当我完成任务后,我停止了计时器并将任务标记为 “完成Done”。 ![][12] -I then headed over to the ' **Settings** ' section to see what kind of options I could tweak, and I must say I was not disappointed. +随后,我转到 “设置Settings” 栏,看看我可以调整哪些选项,我发现它给我了不少惊喜。 -I was able to tweak app behavior such as **always on top** , **switch to dark mode** , **enable** **voice assistance** and more. +我可以调整应用行为,如设置为 “始终在顶部Always On Top”, 启用“深色主题Dark Theme” 和 “语音助手Voice Assiastance” 等。 ![][13] -Pomatez also features **support for keyboard shortcuts** , though I was expecting the ability to control the timer via a keyboard shortcut. +Pomatez 还支持键盘快捷键,虽然我期望它能提供通过键盘快捷键控制计时器的功能。 -_Maybe they can consider my feedback for future releases? Hopefully!_ +或许他们可以考虑在未来的版本中参考我的反馈意见?我希望他们可以! ![][14] -Overall, it is an interesting app if you want to streamline your daily workflow. +总体而言,如果你希望改进日常工作流程,这款应用值得尝试。 -The best thing is, it is **a cross-platform app** , not limited to Linux. So, you can also try it on your Windows and macOS systems. +最好的是,它是一个跨平台的应用,不仅可以在 Linux 所有现代发行版上运行,你在 Windows 和 macOS 系统上也可以试用。 -### 📥 Download Pomatez +### 📥 下载 Pomatez -Pomatez is available as a **.deb** , **AppImage** , and **.rpm** , packages for Linux. You can also find a Snap package for it. +Pomatez 提供了 Linux 平台的 .deb、AppImage 和 .rpm 安装包。你还可以找到它的 Snap 包。 -Grab the package of your choice from the [official website][15], [Snap store][16] or its [GitHub][17] repo. +你可以从官方网站,Snap 商店 或其在 GitHub 上的仓库获取你需要的包。 -[Pomatez (GitHub)][17] +> **[Pomatez(GitHub)][15]** -_💬 Have you used such an app before? Let us know in the comments below!_ - -* * * +你之前用过这样的应用吗?请在下方的评论区告诉我们吧! -------------------------------------------------------------------------------- @@ -109,15 +104,15 @@ via: https://news.itsfoss.com/pomatez/ 作者:[Sourav Rudra][a] 选题:[lujun9972][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) +译者:[ChatGPT](https://linux.cn/lctt/ChatGPT) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 [a]: https://news.itsfoss.com/author/sourav/ [b]: https://github.com/lujun9972 [1]: https://en.wikipedia.org/wiki/Pomodoro_Technique -[2]: https://news.itsfoss.com/reminders/ +[2]: https://linux.cn/article-15852-1.html [3]: https://news.itsfoss.com/content/images/size/w256h256/2022/08/android-chrome-192x192.png [4]: https://news.itsfoss.com/content/images/2023/09/Pomatez_1.png [5]: https://www.typescriptlang.org/ From 060fefaad75af57d02deba7783b07c909d99176c Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Mon, 9 Oct 2023 11:29:31 +0800 Subject: [PATCH 3/3] Revert "AT" This reverts commit cb7ffce4146dcbf5a518ea7372514d093abe280e. --- ... Open-Source App Helps You Stay Focused.md | 93 ++++++++++--------- 1 file changed, 49 insertions(+), 44 deletions(-) diff --git a/sources/news/20231007 This Open-Source App Helps You Stay Focused.md b/sources/news/20231007 This Open-Source App Helps You Stay Focused.md index b9cff3c7d4..604e0e4afc 100644 --- a/sources/news/20231007 This Open-Source App Helps You Stay Focused.md +++ b/sources/news/20231007 This Open-Source App Helps You Stay Focused.md @@ -2,101 +2,106 @@ [#]: via: "https://news.itsfoss.com/pomatez/" [#]: author: "Sourav Rudra https://news.itsfoss.com/author/sourav/" [#]: collector: "lujun9972/lctt-scripts-1693450080" -[#]: translator: "ChatGPT" +[#]: translator: " " [#]: reviewer: " " [#]: publisher: " " [#]: url: " " -开源应用 Pomatez 使你保持专注 +This Open-Source App Helps You Stay Focused ====== +Get a boost of productivity with the time management benefits of Pomatez +app. +Are you familiar with the 'Pomodoro Technique'? -> Pomatez 应用可以提升你的效率,它为你的时间管理带来了巨大帮助。 +Well, it is **a time management method** developed in the late 1980s that uses a timer to break work into set intervals, usually 25 minutes, followed by short breaks, then repeat until the task is done. -你是否对 “番茄工作法” 有所了解呢? +This has been growing in popularity over the years, with various apps featuring the [Pomodoro Technique][1] as their main selling point. -这是一种 **时间管理方法**,于 1980 年代末期开发,通过定时器将工作划分为一定的时间间隔,每间隔 25 分钟后进行短暂的休息,如此循环直至任务完成。 +Here, we will be covering one such app that is **available natively for Linux** , called ' **Pomatez** '. It is **an open-source app** that features all the tools required to follow such an approach for time management. -这种方法在近些年变得越来越流行,有很多应用程序以 [番茄工作法][1]Pomodoro Technique 作为主要的卖点。 +You know this is not the first time we are covering an app like this, there's an app called ' **[Reminders][2]'** that serves a similar purpose, though without the Pomodoro approach. -这里我们将介绍一个采用这种方法的应用,它名为 “Pomatez”,并且是 **原生支持 Linux 平台的开源应用**。Pomatez 为时间管理提供了所需的全部工具。 +![][3] -其实这并不是我们第一次介绍这种应用,之前有一种应用叫 “Reminders”,功能类似,但并未采用番茄工作法。 +Let me highlight what you can do with the Pomatez app. -> **[Reminders:一个漂亮的开源 Linux 应用,可帮助你完成工作][2]** - -现在我来详述一下你可以用 Pomatez 应用做些什么。 - -### Pomatez: 概述 ⭐ +### Pomatez: Overview ⭐ ![][4] -Pomatez 使用 TypeScript 编程语言编写,是一款极好的工具,能让你在执行重要任务的同时安排适时的休息,保持专注。 +Written in the [**TypeScript**][5] programming language, Pomatez is **a neat tool for staying focused while also taking those much-needed breaks** during important tasks. -Pomatez 的关键特性包括: +Some of its key features include: - * 内置的任务列表 - * 桌面通知 - * 可定制的规则 + * **Built-in Task Lists** + * **Desktop Notifications** + * **Customizable Rules** -#### 初次使用感受 👨‍💻 -我在我的 Ubuntu 22.04 LTS 系统上安装了它,体验了它的功能表现。 -首先,我在 “任务列表Task List” 部分填充了一些当日必须完成的重要任务和一些不太重要的任务。 +#### Initial Impressions 👨‍💻 -一切就绪后,你将不会感到失望的 👇 +I set it up on my [Ubuntu 22.04][6] LTS system to see what it had to offer. + +First and foremost, I populated the ' **Task List** ' section with some super important tasks and some unimportant tasks that I wanted to accomplish before the end of the day. + +Take a look, you won't be disappointed 👇 ![][7] -然后,我进入 “配置Config” 栏,按照自己的喜好进行了规则调整。 +Then, I headed over to the ' **Config** ' tab, where I could tweak the rules according to my preference. -“保持专注Stay focus” 为执行任务的时间长度,“短暂休息Short break” 为短暂的休息时间,“长休息Long break” 为更长的休息时间,以及 “会话轮次Session rounds” 为定时器的会话数量。 +The ' **Stay focus** ' was for setting the task duration, the ' **Short break** ' was to set a short time off, ' **Long break** ' for a longer time off, and ' **Session rounds** ' to set the number of sessions for the timer. -这里还有一个 “特殊休息Special Breaks” 部分,可以用来安排比如午餐、晚餐的特定休息时间。 +[via GIPHY][8] + +There was even a ' **Special Breaks** ' section that could be used to set specific breaks such as lunch, dinner, or whatever you want. ![][9] -接下来,我进入 “计时器Timer” 栏,此处显示了首个待处理任务,一列显示的是会话数以及控制定时器/会话的选项。 +Next, I proceeded to the ' **Timer** ' section, where I was shown the first task at hand, with the number of sessions being shown below along with the controls to handle the timer/session. -这里有一个重置定时器的按钮,一个开始/停止定时器的按钮,一个按规则进入下一阶段的按钮,一个调节音量的按钮,以及一个切换至 “精简模式Compact mode”(位于右下角)的按钮。 +There was a button to reset the timer, one to start/stop the timer, another to go into the next phase per the rules. Another one for changing the volume, and a button to go into the ' **Compact mode** ' (at the bottom right). ![][10] -我按下 “开始” 按钮启动了定时器,并开始查看了任务的可执行操作。我可以标记任务为 “完成Done”,跳过任务,或者从应用中删除任务。 +I started the timer by using the 'Play' button, and proceeded to check out the possible actions for the task. I can mark it as 'Done', skip it, or even delete it from the app. ![][11] -随着任务的推进,我通过按下带一个框和向下箭头图标的按钮,将 Pomatez 切换到了 “精简模式Compact mode”。 +As the task progressed, I switched Pomatez into the **'Compact mode** ' by using the button with a box/downwards arrow logo. -这样我得到了一个更小巧的,节省空间的界面。当我完成任务后,我停止了计时器并将任务标记为 “完成Done”。 +Doing that gave me a smaller, more space-conscious interface. After I was done with the task, I stopped the timer and marked the task as 'Done'. ![][12] -随后,我转到 “设置Settings” 栏,看看我可以调整哪些选项,我发现它给我了不少惊喜。 +I then headed over to the ' **Settings** ' section to see what kind of options I could tweak, and I must say I was not disappointed. -我可以调整应用行为,如设置为 “始终在顶部Always On Top”, 启用“深色主题Dark Theme” 和 “语音助手Voice Assiastance” 等。 +I was able to tweak app behavior such as **always on top** , **switch to dark mode** , **enable** **voice assistance** and more. ![][13] -Pomatez 还支持键盘快捷键,虽然我期望它能提供通过键盘快捷键控制计时器的功能。 +Pomatez also features **support for keyboard shortcuts** , though I was expecting the ability to control the timer via a keyboard shortcut. -或许他们可以考虑在未来的版本中参考我的反馈意见?我希望他们可以! +_Maybe they can consider my feedback for future releases? Hopefully!_ ![][14] -总体而言,如果你希望改进日常工作流程,这款应用值得尝试。 +Overall, it is an interesting app if you want to streamline your daily workflow. -最好的是,它是一个跨平台的应用,不仅可以在 Linux 所有现代发行版上运行,你在 Windows 和 macOS 系统上也可以试用。 +The best thing is, it is **a cross-platform app** , not limited to Linux. So, you can also try it on your Windows and macOS systems. -### 📥 下载 Pomatez +### 📥 Download Pomatez -Pomatez 提供了 Linux 平台的 .deb、AppImage 和 .rpm 安装包。你还可以找到它的 Snap 包。 +Pomatez is available as a **.deb** , **AppImage** , and **.rpm** , packages for Linux. You can also find a Snap package for it. -你可以从官方网站,Snap 商店 或其在 GitHub 上的仓库获取你需要的包。 +Grab the package of your choice from the [official website][15], [Snap store][16] or its [GitHub][17] repo. -> **[Pomatez(GitHub)][15]** +[Pomatez (GitHub)][17] -你之前用过这样的应用吗?请在下方的评论区告诉我们吧! +_💬 Have you used such an app before? Let us know in the comments below!_ + +* * * -------------------------------------------------------------------------------- @@ -104,15 +109,15 @@ via: https://news.itsfoss.com/pomatez/ 作者:[Sourav Rudra][a] 选题:[lujun9972][b] -译者:[ChatGPT](https://linux.cn/lctt/ChatGPT) -校对:[wxy](https://github.com/wxy) +译者:[译者ID](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 [a]: https://news.itsfoss.com/author/sourav/ [b]: https://github.com/lujun9972 [1]: https://en.wikipedia.org/wiki/Pomodoro_Technique -[2]: https://linux.cn/article-15852-1.html +[2]: https://news.itsfoss.com/reminders/ [3]: https://news.itsfoss.com/content/images/size/w256h256/2022/08/android-chrome-192x192.png [4]: https://news.itsfoss.com/content/images/2023/09/Pomatez_1.png [5]: https://www.typescriptlang.org/