Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a free command line tool (preferably with a database) to find synonyms/antonyms in Linux? Where can I get it?

share|improve this question

You could use Wordnet. The command line utility wn includes thesaurus features.

$ wn glow -n1 -synsv

Synonyms/Hypernyms (Ordered by Estimated Frequency) of verb glow

Sense 1
       => radiate

$ wn slow -n2 -antsa

Antonyms of adj slow

Sense 2
slow (vs. fast)

fast (vs. slow)
        => allegro
        => allegretto
        => andantino
        => presto
        => prestissimo
        => vivace

This page shows a script you can use that uses lynx and

# Command line thesaurus 

BROWSER="/usr/bin/lynx -source" 
HTML2TEXT="/usr/bin/html2text -style compact" 

if test $1; then 
    echo "Usage: $0 word" 
    exit 1 

To use this script, name it thes, make it executable, and make sure that it's in your $PATH. Then, run the script followed by the word you're interested in. Code Listing 2

$ thes word
share|improve this answer

If you manage to find the necessary dictionary files in any 'open' format such as stardict, DSL, xdxf, Babylon BGL (this one is not really open, but there are tons of free dictionaries on their site), etc, then you can convert them to stardict format and use them from console using sdcv. Conversion can be done via makedict and/or dictconv.

Another option would be using the google dictionary:

with w3m:

w3m ''

with curl+html2text:

curl -s '' | html2text

I while ago I blogged about using dictionaries and google translate from console.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .