man > dict(1)

DICT(1) DICT(1)

📖 NAME

dict - DICT Protocol Client

🚀 Quick Reference

Use CaseCommandDescription
🔍 Look up a word definitiondict wordSearch all databases for the definition of word.
📚 List available databasesdict -DQuery the server and display a list of available databases.
đŸ”Ŧ List available strategiesdict -SQuery the server and display a list of search strategies.
🔎 Match words using a strategydict -m -s strategy wordPerform a match using the specified strategy (e.g., "prefix", "substring").
đŸ–Ĩī¸ Get server infodict -IDisplay information about the server.
🌐 Use a specific serverdict -h server -p port wordSpecify hostname and port for the DICT server.
📁 Use a specific databasedict -d dbname wordSearch only the specified database.

🔧 SYNOPSIS


dict word
dict [options] [word]
dict [options] dict://host:port/d:word:database
dict [options] dict://host:port/m:word:database:strategy

📝 DESCRIPTION

dict is a client for the Dictionary Server Protocol (DICT), a TCP transaction based query/response protocol that provides access to dictionary definitions from a set of natural language dictionary databases. Exit status is 0 if operation succeeded, or non-zero otherwise. See đŸšĒ Exit Codes section.

âš™ī¸ OPTIONS

đŸ› ī¸ CONFIGURATION

The configuration file currently has a very simple format. Lines are used to specify servers, for example:

server dict.org

or, with options:

server dict.org { port 8080 }
server dict.org { user username secret }
server dict.org { port dict user username secret }

The port and user options may be specified in any order. The port option is used to specify an optional port (e.g., 2628) or service (e.g., dict) for the TCP/IP connection. The user option is used to specify a username and shared secret to be used for authentication to this particular server.

Servers are tried in the order listed until a connection is made.

đŸšĒ Exit Codes

Exit CodeMeaning
0✅ Successful completion
20🔍 No matches found
21🔍 Approximate matches found
22📚 No databases available
23đŸ”Ŧ No strategies available
30âš ī¸ Unexpected response code from server
31âš ī¸ Server is temporarily unavailable
32âš ī¸ Server is shutting down
33âš ī¸ Syntax error, command not recognized
34âš ī¸ Syntax error, illegal parameters
35âš ī¸ Command not implemented
36âš ī¸ Command parameter not implemented
37🔒 Access denied
38🔒 Authentication failed
39📁 Invalid database
40đŸ”Ŧ Invalid strategy
41🔌 Connection to server failed

🙏 CREDITS

dict was written by Rik Faith (faith AT cs.edu) and is distributed under the terms of the GNU General Public License. If you need to distribute under other terms, write to the author.

The main libraries used by this program (zlib, regex, libmaa) are distributed under different terms, so you may be able to use the libraries for applications which are incompatible with the GPL — please see the copyright notices and license information that come with the libraries for more information, and consult with your attorney to resolve these issues.

🐛 BUGS

📁 FILES

🔗 SEE ALSO

dictd(8), dictzip(1), http://www.dict.org, RFC 2229

15 February 1998 DICT(1)

dict(1)
📖 NAME 🚀 Quick Reference 🔧 SYNOPSIS 📝 DESCRIPTION âš™ī¸ OPTIONS đŸ› ī¸ CONFIGURATION đŸšĒ Exit Codes 🙏 CREDITS 🐛 BUGS 📁 FILES 🔗 SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-04 14:54 @216.73.216.128
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^