← 返回命令列表

Linux command

clamd 命令

文本

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

常用示例

Start clamd

clamd

Start in foreground

clamd --foreground

Start with specific config file

clamd -c [/etc/clamav/clamd.conf]

Check configuration

clamd --config-check

Reload virus database

clamdscan --reload

说明

clamd is the ClamAV daemon, a multi-threaded virus scanning service. It loads the virus database into memory once and handles scan requests from clients, providing much faster scanning than the standalone clamscan tool. The daemon listens on a Unix socket or TCP port and accepts commands to scan files, directories, or data streams. Multiple clients can connect simultaneously, making it suitable for email servers, file servers, and web applications. clamd is commonly used with mail transfer agents (Postfix, Exim, Sendmail), web proxies, and file upload handlers to provide real-time malware scanning. Clients interact with clamd using clamdscan or by sending commands directly to the socket.

参数

-c _file_, --config-file=_file_
Use specified configuration file (default: /etc/clamav/clamd.conf).
-F, --foreground
Run in foreground, do not daemonize.
--debug
Enable debug messages.
--config-check
Read configuration, check for errors, and exit.
-h, --help
Display help.
-V, --version
Display version.

FAQ

What is the clamd command used for?

clamd is the ClamAV daemon, a multi-threaded virus scanning service. It loads the virus database into memory once and handles scan requests from clients, providing much faster scanning than the standalone clamscan tool. The daemon listens on a Unix socket or TCP port and accepts commands to scan files, directories, or data streams. Multiple clients can connect simultaneously, making it suitable for email servers, file servers, and web applications. clamd is commonly used with mail transfer agents (Postfix, Exim, Sendmail), web proxies, and file upload handlers to provide real-time malware scanning. Clients interact with clamd using clamdscan or by sending commands directly to the socket.

How do I run a basic clamd example?

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

What does -c _file_, --config-file=_file_ do in clamd?

Use specified configuration file (default: /etc/clamav/clamd.conf).