Linux command
dict 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Look up a word
dict [word]
Look up in specific
dict -d [wn] [word]
List available dictionaries
dict -D
Find matching words
dict -m [word*]
Use specific server
dict -h [dict.org] [word]
Show database information
dict -i [wn]
说明
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.
参数
- -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.
FAQ
What is the dict command used for?
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.
How do I run a basic dict example?
Run `dict [word]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d _DATABASE_ do in dict?
Search specific dictionary database.