In Linux system operation, if you encounter unfamiliar words, you will look up the dictionary, but sometimes you will encounter a situation where the computer just has no network and cannot query the dictionary online. In this case, you can use the dictionary that comes with the system to perform related queries. The following small series will introduce you to the Linux offline query dictionary.
First you need to set up local dictd. Dictd is a dictionary database server. It allows you to access online dictionaries. But wait a minute, are we not going to use it offline? This is why we have to install it locally. It comes with a command line client.
To install on Ubuntu or Debian you have to type:
$ sudo apt-get install dictd
This is very simple. Now you need to install the dictionary. After installing each dictionary plugin, dictd will automatically reload its database. Let's install the English dictionary and the English synonym dictionary.
Enter:
$ sudo apt-get install dict-gcide
$ sudo apt-get install dict-moby-thesaurus
If you wish to query For other languages that can be queried, you can type:
$ sudo apt-cache search “dict package”
This will list the following:
dict-freedict -eng-ara -DictpackageforEnglish-ArabicFreedict dictionary
dict-freedict-eng-cro -DictpackageforEnglish-CroatianFreedict dictionary
dict-freedict-eng-cze -DictpackageforEnglish-CzechFreedict dictionary
dict-freedict-eng-deu -DictpackageforEnglish-GermanFreedict dictionary
dict-freedict-eng-fra -DictpackageforEnglish-FrenchFreedict dictionary
Now that you have successfully installed dictd, you can find it later. The dictionary is gone.
First, let's check if the dictd service is running and what database is installed:
$ dict -I
Sample output:
dictd 1.12 .0/rf on Linux3.2.0-29-generic-pae
On my_host: up 95.000,2 forks (75.8/hour)
DatabaseHeadwordsIndexDataUncompressed
gcide 2036453859 kB 12 MB 38 MB
moby-thesaurus 30263528 kB 10 MB 28 MB
To query a word, you can specify the dictionary to be queried. Let's look at the English one dictionary (gcid):
$ dict -d gcide [the word you want to check]
If you don't use the -d parameter, dictd will search all the installation dictionaries. And return the matching result.
The above is the Linux offline query dictionary method, you need to set dictd, install it locally, and then enter the command line in the command line to query the dictionary to achieve offline dictionary query.
Linux users have a lot of people using svn, but now many users have switched to git
Linux system can modify the color of the shell script output text, so that it can be distinguished f
VMware Tools is an enhancement to VMware. Usually you need to install VMware Tools after installing
exfat is a file system for U disk. Many systems support the use of exfat format, bu
How to use Ctags tool to quickly find source code in Linux
What is the use of the Linux system pppsetup command?
The Linux find command combined with xargs method
CentOS uses the split command to split the file instance
What should I do if Ubuntu fails to adjust and save the screen brightness?
How to configure Kickstart script
What should I do if I get an error when compiling PARSEC 2.1 under Ubuntu?
Ubuntu view and batch modify file encoding method
What should I do if there are garbled characters in Linux Chinese characters?
How to configure LILO file for Red Flag Linux system
Ubuntu 14.04 prohibits the apport error report window startup method
Win7 system hides the optical drive method
What should I do if the WinXP system network neighbor disappears?
Win7 locks "switch between windows" to the taskbar
VPN connection and skills under Win8
Microsoft's official blog talks about the improvement of Windows 8 installation experience
How does the XP system set the font size of a web page?
How to change the location of the win7 temporary folder
After WinXP restarts, the downloaded and installed software is missing. How to solve it?