← 返回命令列表

Linux command

dictd 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start dictionary server

dictd

Start with specific config

dictd -c [/etc/dictd/dictd.conf]

Run in foreground

dictd --nodetach

Listen on specific port

dictd --port [2628]

Limit concurrent connections

dictd --limit [10]

Run with specific PID file

dictd --pid [/var/run/dictd.pid]

说明

dictd is a dictionary server daemon implementing the DICT protocol (RFC 2229). It serves dictionary databases to clients over TCP port 2628, enabling word lookups, definitions, translations, and thesaurus queries. The server supports multiple dictionary formats and can serve several dictionaries simultaneously. Clients can query words across all configured databases at once or target specific dictionaries. The protocol supports various search strategies including exact match, prefix, suffix, and fuzzy matching. dictd databases are typically in the dictd format created by dictfmt, which converts various source formats into indexed dictionary files. The server handles concurrent connections and can be configured with access controls. Popular dictionary databases include WordNet, Elements, Jargon File, and various language translation dictionaries.

参数

-c _file_
Configuration file path.
--port _port_
TCP port (default 2628).
--listen _address_
Listen address.
--limit _n_
Maximum concurrent connections.
-i, --inetd
Run in inetd mode, communicating on stdin/stdout. Implies --fast-start.
--nodetach
Run in foreground, don't daemonize.
--depth _length_
Override the depth keyword from configuration.
--delay _seconds_
Override the delay keyword from configuration.
--fast-start
Skip preloading of database indexes at startup.
--logfile _file_
Log to specified file instead of syslog.
--syslog
Log to syslog (default when daemonized).
--stderr
Log to standard error (implies --nodetach).
--pid _file_
PID file location.
-L, --license
Show license.
-V, --version
Show version.

FAQ

What is the dictd command used for?

dictd is a dictionary server daemon implementing the DICT protocol (RFC 2229). It serves dictionary databases to clients over TCP port 2628, enabling word lookups, definitions, translations, and thesaurus queries. The server supports multiple dictionary formats and can serve several dictionaries simultaneously. Clients can query words across all configured databases at once or target specific dictionaries. The protocol supports various search strategies including exact match, prefix, suffix, and fuzzy matching. dictd databases are typically in the dictd format created by dictfmt, which converts various source formats into indexed dictionary files. The server handles concurrent connections and can be configured with access controls. Popular dictionary databases include WordNet, Elements, Jargon File, and various language translation dictionaries.

How do I run a basic dictd example?

Run `dictd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _file_ do in dictd?

Configuration file path.