Table of Contents
This updated guide explains how to Install Dictionaries in Linux Terminal through clear steps, practical examples, and important checks that help prevent common errors.
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
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
Install the dictionary file
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 may need to look up):
sdcv WORD
Run the search
If SDCV offers many options, you can specify what you are interested in by selecting its number.
Specify options by selecting a 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
Wikit requires Node. js and npm
To install Wikit, just use the following command:
npm i wikit -g
Install Wikit
Once you have Wikit installed, you can call it with the following command (change SEARCH_PHRASE to your own search terms):
wikit SEARCH_PHRASE
Call Wikit
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!
FAQ
What is the easiest way to Install Dictionaries in Linux Terminal?
Start with the requirements in this guide, then follow each step in order. Check the result after every major change so problems are easier to identify.
Can beginners follow these instructions?
Yes. The process is organized into practical steps, and you can repeat any step before moving forward.
What should I check if the method does not work?
Confirm your software or device version, permissions, settings, file format, and internet connection when the task depends on online services.
Reader Comments 0
Sign in with email or Google to join the discussion.