diff --git a/translated/tech/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md b/published/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md similarity index 85% rename from translated/tech/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md rename to published/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md index c9c30650da..349301908e 100644 --- a/translated/tech/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md +++ b/published/20230206.1 ⭐️⭐️ Wordsmith on the Linux command line with dict.md @@ -3,20 +3,24 @@ [#]: author: "David Both https://opensource.com/users/dboth" [#]: collector: "lkxed" [#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-15607-1.html" 在 Linux 命令行上使用 dict 文字工具 ====== +![][0] + +> Linux 上的 dict 命令对作家来说非常有用,可以为他们的选词提供大量的字典和同义词。 + 作为一个作家,我经常需要确定单词的正确拼写或定义。我还需要使用词库来寻找替代词,这些词的内涵可能与我可能使用的词有些不同。因为我经常使用 Linux 命令行和文本模式工具来完成我的大部分工作,所以使用命令行词典是有意义的。 我非常喜欢使用命令行,原因有很多,其中最主要的原因是它对我来说更有效率。它也比任何一本或多本实体纸质字典,都要全面得多。我使用 Linux 的 `dict` 命令已经很多年了,我已经开始依赖它了。 ### 在 Linux 上安装 dict -dict 程序在 Fedora 上没有默认安装,但它很容易安装。以下是如何在 Fedora 或类似发行版上安装: +`dict` 程序在 Fedora 上没有默认安装,但它很容易安装。以下是如何在 Fedora 或类似发行版上安装: ``` $ sudo dnf install dictd @@ -24,12 +28,11 @@ $ sudo dnf install dictd 在 Debian 和类似发行版上,你还必须安装字典定义: - ``` $ sudo apt install dictd dict-gcide ``` -不需要额外的配置。最简单的 `/usr/share/doc/dictd/dict1.conf` 文件指定了字典数据库的远程服务器。这个工具使用字典服务器协议(DICT),端口为 2628。 +不需要额外的配置。这个非常简单的 `/usr/share/doc/dictd/dict1.conf` 文件指定了字典数据库的远程服务器。这个工具使用字典服务器协议(DICT),端口为 2628。 ### 在 Linux 上使用 dict @@ -105,7 +108,7 @@ $ dict "air gapped" ### 字典 -`dict` 命令使用一些在线字典,包括法律和技术字典。许多语言的字典也是可用的。你可以`列出`可用的字典数据库,如下面所示: +`dict` 命令使用一些在线字典,包括法律和技术字典。许多语言的字典也是可用的。你可以“列出”可用的字典数据库,如下面所示: ``` $ dict -D | less @@ -143,7 +146,7 @@ $ dict -d gcide 有时使用词库中的词汇并不是最好的写作方法,因为它可能会混淆你的意思。但我确实发现 `dict` 命令在为特定的意思选择最好的词方面有极大的帮助。它还能确保我使用的单词拼写正确。 -关于 dict 的信息很匮乏。 这个 URL [http://www.dict.org/][1] 只提供了一个基于网络的字典界面。手册页涵盖了语法。但是这个命令是一个有用的、有趣的命令,可以随身携带。我承认在发现 `dict` 命令后,我花了很多时间尝试不同的东西,看看结果会是什么。我就是那个读百科全书和字典的孩子。是的,我是_那个_孩子。除了在写作或阅读时是一个有用的工具外,dict 也可以是一个有趣的工具来满足一下好奇心。 +关于 dict 的信息很匮乏。 这个 URL [http://www.dict.org/][1] 只提供了一个基于网络的字典界面。手册页涵盖了语法。但是这个命令是一个有用的、有趣的命令,可以随身携带。我承认在发现 `dict` 命令后,我花了很多时间尝试不同的东西,看看结果会是什么。我就是那个通读百科全书和字典的孩子。是的,我是_那个_孩子。除了在写作或阅读时是一个有用的工具外,`dict` 也可以是一个有趣的工具来满足一下好奇心。 -------------------------------------------------------------------------------- @@ -152,11 +155,11 @@ via: https://opensource.com/article/23/2/linux-dict-command 作者:[David Both][a] 选题:[lkxed][b] 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 [a]: https://opensource.com/users/dboth [b]: https://github.com/lkxed [1]: http://www.dict.org/ - +[0]: https://img.linux.net.cn/data/attachment/album/202303/08/152653jojqqmv7x7wxzox7.jpg \ No newline at end of file