Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Linux Free Dictionary: More Useful Than You Think?

· 6 min read · Home Tech

In this article
  1. What Exactly Is the Linux Free Dictionary?
  2. How the DICT System Works
  3. Why It's More Useful Than You Think
  4. How to Choose and Install Dictionaries
  5. Common Problems and How to Fix Them
  6. Comparison with Other Dictionary Tools
  7. Cost and Safety Considerations
  8. Advanced Tips and Tricks
  9. Frequently Asked Questions

Yes, the Linux free dictionary — commonly known as dict and the dictd server — is far more useful than most people realize, offering offline, scriptable, and lightning-fast access to dozens of reference works beyond simple word definitions. While graphical dictionary apps and online thesauruses are convenient, the command-line dictionary that ships with most Linux distributions provides a level of flexibility, speed, and customization that GUI tools rarely match.

What Exactly Is the Linux Free Dictionary?

At its core, the Linux free dictionary is a client-server system built around the DICT protocol (RFC 2229). The server, dictd, runs in the background and serves dictionary databases; the client, dict, sends queries and displays results. This separation means you can query a dictionary on your own machine, on a remote server, or even multiple servers at once — all with the same simple command.

Unlike a typical GUI dictionary that bundles one or two wordbooks, the DICT system can access hundreds of freely available databases. These include classic references like the WordNet lexical database, Webster's Revised Unabridged Dictionary (1913), Jargon File, Easton's Bible Dictionary, and even specialized glossaries for computing, medicine, law, and chemistry. You are not limited to English either — many language dictionaries are available as DICT databases.

How the DICT System Works

To use it, you typically install two packages: dictd (the server) and dict (the client). On Debian/Ubuntu, the command is:

sudo apt install dict dictd

After installation, you need to download and enable dictionary databases. On Debian-based systems, each database is a separate package, such as dict-wn (WordNet), dict-gcide (the 1913 Webster's), or dict-jargon. Once installed, you must edit /etc/dictd/dictd.conf to list the databases, then restart the service:

sudo systemctl restart dictd

To look up a word, simply type:

dict serendipity

The output shows the word, the dictionary source, and the definition. You can also search across all installed dictionaries with dict -a, or specify a particular one with dict -d wn serendipity (for WordNet).

Why It's More Useful Than You Think

Most users dismiss the command-line dictionary as a novelty, but it offers several practical advantages:

  • Offline access: Once installed, no internet connection is needed. This is invaluable for remote work, secure environments, or when traveling.
  • Scriptability: You can pipe definitions into other commands, use them in shell scripts, or create custom aliases. For example, dict $1 | less gives you a paged view of any word.
  • Speed: Querying a local dictionary is instantaneous — no waiting for web pages or app load times.
  • Multiple sources at once: You can see a word defined by WordNet, the 1913 Webster's, and a specialized glossary in one output, giving a richer picture than a single source.
  • Low resource usage: It runs entirely in a terminal, making it ideal for minimal systems or SSH sessions.

How to Choose and Install Dictionaries

Choosing the right dictionaries depends on your needs. Here are common ones and what they offer:

  • dict-wn — WordNet: a large lexical database with definitions, synonyms, and hypernyms. Great for general use.
  • dict-gcide — The Collaborative International Dictionary of English (based on Webster's 1913): older, but rich in etymology and literary usage.
  • dict-jargon — The Jargon File: a glossary of hacker slang and culture. Fun and historically significant.
  • dict-vera — V.E.R.A.: a glossary of computing acronyms. Useful for tech documentation.
  • dict-moby-thesaurus — Moby Thesaurus: a huge thesaurus for synonyms and related words.
  • dict-freedict-eng-fra — FreeDict: bilingual dictionaries (many language pairs available).

To see what's available in your package manager, search for dict- packages:

apt search dict- | grep dictionary

After installing, remember to update dictd.conf to include the new database paths (usually under /usr/share/dictd/).

Common Problems and How to Fix Them

Users often hit a few snags when first setting up DICT:

  • No definitions found: This usually means the database isn't enabled in dictd.conf or the server wasn't restarted. Check the config file and run sudo systemctl restart dictd.
  • Connection refused: The dictd service may not be running. Start it with sudo systemctl start dictd and enable it with sudo systemctl enable dictd.
  • Database not showing up: Ensure the dictionary package is installed and the path in dictd.conf points to the correct .dict.dz and .index files.
  • Client can't connect to server: By default, dict connects to localhost. If you're querying a remote server, use dict -h server.example.com word.

Comparison with Other Dictionary Tools

How does dict stack up against alternatives?

  • vs. GUI apps (e.g., GoldenDict, Artha): GUI apps offer mouse interaction and pretty formatting, but they are heavier and often rely on online sources. dict is lighter and faster, but has a steeper learning curve.
  • vs. Online dictionaries (e.g., dictionary.com, Merriam-Webster): Online dictionaries are always up-to-date and include audio pronunciations, but they require an internet connection and can be cluttered with ads. dict is clean, offline, and scriptable.
  • vs. sdcv (StarDict Console Version): sdcv is another command-line dictionary that uses StarDict format. It's simpler to set up (no server), but dict offers a more standardized protocol and can query remote servers.

Cost and Safety Considerations

All the dictionaries mentioned are free and open-source, available through your distribution's package manager. There is no cost, and no proprietary data is involved. As for safety, dictd is a lightweight service that, when run locally, poses minimal security risk. However, if you expose it to the internet, you should restrict access with a firewall or SSH tunnel, as it's not designed for public-facing use without proper configuration. Always install packages from your official repositories to avoid malicious third-party builds.

Advanced Tips and Tricks

Once you're comfortable with basics, you can do more:

  • Use it in scripts: For example, a script that looks up a word and sends the definition to a notification daemon:
#!/bin/bash
def=$(dict "$1" | head -20)
notify-send "$1" "$def"
  • Define a shell alias: Add alias define='dict' to your .bashrc for a shorter command.
  • Query remote servers: The DICT protocol is used by public servers like dict.org. You can query them with dict -h dict.org word without installing any databases locally.
  • Use with less: Pipe output to less for easy scrolling: dict word | less.

Frequently Asked Questions

Is the Linux free dictionary really free?

Yes, it's free as in both price and freedom. The software (dictd and dict) is open-source, and most dictionary databases are either public domain or under free licenses like the GNU Free Documentation License. You can use, modify, and redistribute them.

Can I use it without installing anything?

You can query public DICT servers like dict.org using a telnet client or a web browser (they offer a web interface), but to use the native dict client, you need to install it. On most Linux systems, it's a tiny package.

How do I add a custom dictionary?

If you have a dictionary in DICT format (a .dict.dz and .index file), place it in /usr/share/dictd/, add an entry to dictd.conf, and restart the server. You can also convert other formats (like StarDict) using tools like dictfmt.

Does it work on macOS or Windows?

The DICT client and server are Unix tools, but they can be compiled on macOS (via Homebrew) and run on Windows through WSL or Cygwin. The server is typically run on Linux, but clients can connect from any platform.

Why would I use this instead of a web browser?

For speed, offline access, and automation. If you're already in a terminal, typing dict word is faster than opening a browser, and you can chain it with other commands. Plus, it works in environments without a GUI.