Saturday, May 4, 2024
98
rated 0 times [  98] [ 0]  / answers: 1 / hits: 50590  / 3 Years ago, wed, september 8, 2021, 4:22:04

Is there any command line offline dictionary? I know that there are some like
StarDict and Artha but how about one in the command line?



Also, I tried dict but it is an online dictionary.


More From » command-line

 Answers
0

sdcv is the console version of Stardict.



1. Install the dictionary



Run the following command in the terminal:



sudo apt-get install sdcv


2. Download dictionary files



Download the dictionary files according to your requirements from the following sources.





3. Install downloaded dictionaries



Make the directory where sdcv looks for the dictionary:



sudo mkdir -p /usr/share/stardict/dic/


The next command depends on whether the downloaded file is a .gz file or a .bz2 file.



If it is a .bz2 file:



sudo tar -xvjf downloaded.tar.bz2 -C /usr/share/stardict/dic


If it is a .gz file:



sudo tar -xvzf downlaoded.tar.gz -C /usr/share/stardict/dic


4. Done!



To search for a word use:



sdcv word


enter image description here


[#35419] Thursday, September 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tinchir

Total Points: 300
Total Questions: 116
Total Answers: 119

Location: American Samoa
Member since Sun, Jan 17, 2021
3 Years ago
tinchir questions
Tue, Sep 14, 21, 23:11, 3 Years ago
Mon, Dec 19, 22, 13:00, 1 Year ago
Sat, Feb 5, 22, 11:36, 2 Years ago
Mon, Aug 8, 22, 02:16, 2 Years ago
;