LinuxCommandLibrary

clamconf

ClamAV configuration display and generation tool

TLDR

Display all ClamAV configuration settings

$ clamconf
copy
Show configuration for a specific config file
$ clamconf -c [path/to/clamd.conf]
copy
Display freshclam configuration settings
$ clamconf -f [path/to/freshclam.conf]
copy
Generate example configuration files
$ clamconf -g [clamd.conf|freshclam.conf]
copy
Show database information only
$ clamconf -n
copy

SYNOPSIS

clamconf [options]

DESCRIPTION

clamconf is a utility for displaying ClamAV configuration settings and virus database information. It reads the clamd and freshclam configuration files and presents their current values, making it useful for verifying settings and debugging configuration issues.
The tool shows both explicitly set values and default settings, highlighting which options differ from defaults. It also displays information about loaded virus signature databases, including database version, signature count, and build time.
System administrators use clamconf to verify ClamAV installations are correctly configured, generate example configuration files for new deployments, and troubleshoot scanning or update issues by examining the active settings.

PARAMETERS

-c FILE, --config-file=FILE

Read clamd configuration from the specified file.
-f FILE, --freshclam-file=FILE
Read freshclam configuration from the specified file.
-g NAME, --generate-config=NAME
Generate example configuration file (clamd.conf or freshclam.conf).
-n, --non-default
Only display non-default settings.
-h, --help
Display help information.
-V, --version
Display version information.

CONFIGURATION

/etc/clamav/clamd.conf

ClamAV daemon configuration file.
/etc/clamav/freshclam.conf
Virus database update configuration file.

CAVEATS

clamconf reads configuration files but does not validate whether clamd or freshclam services are actually running with those settings. Changes to configuration files require restarting the respective services to take effect.

HISTORY

clamconf was introduced as part of the ClamAV suite to simplify configuration management. ClamAV originated in 2001 and clamconf was added later to help administrators manage the increasingly complex configuration options as the antivirus engine evolved.

SEE ALSO

clamscan(1), clamd(8), freshclam(1), clamav(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community