In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to query the dictionary under the Linux command line. The article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.
Who can't look it up in the dictionary, but can you look it up in the Linux system?
First of all, you need to set dictd locally. Dictd is a dictionary database server. It allows you to access online dictionaries. But wait a minute, aren't we going to use it offline? This is why we want to install it locally. It comes with a command line client.
To install on Ubuntu or Debian, you need to type:
Sudo apt-get install dictd this is very simple. Now you need to install the dictionary you use. Dictd automatically reloads its database after each dictionary plug-in is installed. Let's install an English dictionary and an English synonym dictionary.
Enter:
$sudo apt-get install dict-gcide $sudo apt-get install dict-moby-thesaurus if you want to query other languages that you can query, you can type:
$sudo apt-cache search "dict package" this lists something like this:
Dict-freedict-eng-ara-Dict package for English-Arabic Freedict dictionary dict-freedict-eng-cro-Dict package for English-Croatian Freedict dictionary dict-freedict-eng-cze-Dict package for English-Czech Freedict dictionary dict-freedict-eng-deu-Dict package for English-German Freedict dictionary dict-freedict-eng-fra-Dict package for English-French Freedict dictionary now that you have successfully installed dictd, you can look up the dictionary.
First, let's check if the dictd service is running and what databases are installed:
Sample output of $dict-I:
Dictd 1.12.0/rf on Linux 3.2.0-29-generic-pae On my_host: up 95.000, 2 forks (75.8/hour) Database Headwords Index Data Uncompressed gcide 203645 3859 kB 12 MB 38 MB moby-thesaurus 30263 528 kB 10 MB 28 MB in order to query a word, you can specify the dictionary to query. Let's look up the English one dictionary (gcid):
$dict-d gcide [word you want to look up] if you do not use the-d parameter, dictd will search all installation dictionaries and return matching results.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
This is how to query the dictionary under the Linux command line shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.