In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains how to query the dictionary under the Linux command line. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to query the dictionary under the Linux command line.
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 will list 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:
$dict-I
Sample output:
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 [the word you want to look up]
If you do not use the-d parameter, dictd will search all installation dictionaries and return matching results.
At this point, I believe you have a deeper understanding of "how to query the dictionary under the Linux command line". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.