LinuxCommandLibrary

dict

DICT protocol dictionary client

TLDR

Look up a word definition

$ dict [word]
copy
Look up in specific dictionary
$ dict -d [wn] [word]
copy
List available dictionaries
$ dict -D
copy
Find matching words (wildcard)
$ dict -m [word*]
copy
Use specific server
$ dict -h [dict.org] [word]
copy
Show database information
$ dict -i [wn]
copy

SYNOPSIS

dict [options] word

DESCRIPTION

dict is a command-line client for DICT protocol dictionary servers. It provides access to various dictionaries and thesauri hosted on DICT servers, returning definitions, synonyms, and related information.
The DICT protocol allows querying multiple dictionaries simultaneously. The default public server (dict.org) hosts numerous dictionaries including WordNet, Jargon File, and various language dictionaries.
dict supports different search strategies including exact match, prefix, suffix, and regular expression matching. This flexibility helps find words even with uncertain spelling.

PARAMETERS

WORD

Word or phrase to look up.
-d DATABASE
Search specific dictionary database.
-D
List available databases.
-m
Match mode (find similar words).
-s STRATEGY
Search strategy for matching.
-S
List available strategies.
-h HOST
Connect to specified DICT server.
-p PORT
Port number (default: 2628).
-i DATABASE
Show database information.
--help
Display help information.

CAVEATS

Requires network connectivity to DICT servers. Available dictionaries depend on server. Response time varies with network conditions. Some dictionaries have licensing restrictions.

HISTORY

The dict client implements the DICT protocol (RFC 2229), developed in 1997 as a standard for dictionary server access. The protocol was designed to provide a universal interface for dictionary lookups over the Internet.

SEE ALSO

dictd(8), curl(1), aspell(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community