How to install dictionaries in Linux Terminal
Learning new words can be a difficult process. Thankfully, the Internet has many powerful tools that streamline such processes. Even Google gives you the definition of the word right in the search results. However, even Google can't help when you're stuck offline.
A locally stored dictionary utility can really be useful when no other dictionary is available (even if it exists). There are many options in the Linux software world. Among these, there is an option that runs fairly 'smoothly' from the system terminal, called SDCV.
What is SDCV?
SDCV is a command line version of the popular StarDict extended GUI dictionary application. SDCV stands for StarDict Console Version. StarDict itself runs on all major operating systems, including Windows, BSD and Linux.
What makes StarDict and SDCV so special is that there is a large collection of dictionary files to combine with its lookup function. For advanced users, the option to manually create a dictionary is also available.
In addition to the potential to search multiple dictionaries simultaneously, SDCV also benefits from configurable search patterns.
Install SDCV
Installing SDCV is very simple in Ubuntu with the apt utility and it is also available in the Debian archive. Here is the command to install SDCV in Ubuntu:
sudo apt-get install sdcv

Once installed, SDCV can be called, but there is nothing to offer if no dictionary has been installed.
Install the dictionary file
First, you'll need to find a dictionary file that SDCV can handle (DICT format). Fortunately, there are some great options linked in the StarDict homepage.
The article will use the Collaborative International Dictionary of English for this example.
This file is compressed as a tarball. You need to extract it and put it in the right directory for SDCV to recognize it. The following code snippet accomplishes both tasks at once:
sudo tar -xjvf YOURFILEGOESHERE -C /usr/share/stardict/dic

To use the code above, replace 'YOURFILEGOESHERE' with the full name and extension of the tar file you downloaded. The command will extract the files contained in the shared dictionary directory of SDCV and StarDict at / usr / share / stardict / dic.
Run the search
Now, you can run SDCV from the terminal with the following command (change 'WORD' to the word you want to look up):
sdcv WORD

If SDCV offers many options, you can specify what you are interested in by selecting its number.

Wikit
As a useful complement to SDCV, you can also use another command-line tool for information queries called Wikit.
Wikit allows you to quickly search Wikipedia from the terminal and view summaries for any terms contained in this community-maintained encyclopedia.
Note : Wikit requires Node.js (and npm) to be installed on the system and not work offline. To install Node.js and npm for Ubuntu, use the following code:
https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs

To install Wikit, just use the following command:
npm i wikit -g

Once you have Wikit installed, you can call it with the following command (change SEARCH_PHRASE to your own search terms):
wikit SEARCH_PHRASE

With SDCV and Wikit, you can quickly find information and definitions for almost anything. Try adding additional dictionary files to your SDCV library for a broad offline search!
You should read it
- How to use Guake Terminal in Linux
- 5 interesting entertainment games in Linux Terminal
- How to run 2 or more Terminal commands at the same time on Linux
- How to back up and restore Linux Terminal history
- How to fix the problem of being unable to enter Terminal in Linux
- 6 interesting terminal commands on Mac
- How to play Game Boy games on Linux Terminal
- How to use Linux Terminal as a computer
May be interested
- 7 Ways to Restart Linux from Terminalrestarting linux from the terminal may seem difficult, but don't worry, it's quite simple once you know the right commands. restarting linux is necessary after updating, troubleshooting, or performing system maintenance.
- How to fix 'apt-get: command not found' error in Linux Terminalif you want to install software on a debian-based linux distribution, apt-get is a reliable terminal command. however, sometimes you may get stuck with 'command not found' error as response.
- 14 interesting Linux commands in Terminalterminal is a very powerful tool, but it can become 'interesting' through a few bash commands that quantrimang will introduce to you later. let's follow up and find out because some commands are quite useful.
- 6 interesting terminal commands on Macterminal is a handy utility, often found on unix-based computers, such as linux and macos. there are many interesting things to do in the terminal. regardless of your experience, you can use these great terminal commands on mac.
- 18 Interesting Linux Commands in Terminalterminal is a very powerful tool, but it can be made 'interesting' through a few bash commands that tipsmake.com will introduce to you below. let's follow and learn because some commands are quite useful.
- How to Create and Edit Text File in Linux by Using Terminalthis wikihow teaches you how to use the terminal app in linux to create a text file. after doing so, you can use one of linux's built-in text editors to make changes to the file. open terminal. to do so, click menu, then find the terminal...
- How to spell check in Linux Terminallinux also has a command line spell checker utility in terminal. the utility is called aspell and is installed by default on ubuntu. this is how you can use aspell to check spelling in a terminal.
- How to search Google from Linux terminal with Googlergoogler is a terminal tool that allows you to easily run google searches from your linux terminal, with lots of options to help you find exactly what you're looking for.
- How to mount and mount storage devices on Linux Terminalin the previous article tipsmake showed you how to use the yes command on linux. the next article below tipsmake will guide you on how to mount and mount storage devices on linux terminal.
- How to create and delete folders in Linux Terminalfolders are essential for your linux operating system because they contain files you may use often or that the system needs to function correctly.