Forrest logo
tool overview
On this page you find all important commands for the CLI tool clamdscan. If the command you are looking for is missing please ask our AI.

clamdscan

Clamdscan is a command-line tool that is part of the ClamAV software, an open-source antivirus engine. It is used for scanning files and directories for malware, viruses, and other malicious content.

By running clamdscan, you can initiate on-demand scans on specific files or directories in your system. It communicates with the ClamAV daemon (clamd) in the background, allowing quick and efficient scanning of files without having to load the entire antivirus engine each time.

Clamdscan has several useful features, such as automatic unpacking of various archive formats (ZIP, RAR, TAR, etc.), support for scanning compressed files, and the ability to scan file contents for viruses and malware signatures. It also provides options for recursive scanning, selective scanning based on file types, and generating scan reports.

The output of clamdscan provides detailed information on the scan results, including the number of infected files, any errors encountered during scanning, and a summary of the scan statistics. It also supports options to quarantine or remove infected files.

Overall, clamdscan is a powerful and versatile command-line tool that enhances the security of your system by identifying and mitigating the risks posed by potentially harmful files.

List of commands for clamdscan:

  • clamdscan:tldr:2c87a clamdscan: Output the scan report to a log file.
    $ clamdscan --log ${path-to-log_file}
    try on your machine
    explain this command
  • clamdscan:tldr:402fc clamdscan: Scan a file or directory for vulnerabilities.
    $ clamdscan ${filename_or_directory}
    try on your machine
    explain this command
  • clamdscan:tldr:4d3c3 clamdscan: Remove infected files.
    $ clamdscan --remove
    try on your machine
    explain this command
  • clamdscan:tldr:4e371 clamdscan: Use multiple threads to scan a directory.
    $ clamdscan --multiscan
    try on your machine
    explain this command
  • clamdscan:tldr:7b6ed clamdscan: Pass the file descriptor instead of streaming the file to the daemon.
    $ clamdscan --fdpass
    try on your machine
    explain this command
  • clamdscan:tldr:7dfc7 clamdscan: Scan the current directory and output only infected files.
    $ clamdscan --infected
    try on your machine
    explain this command
  • clamdscan:tldr:fcaa7 clamdscan: Move infected files to a specific directory.
    $ clamdscan --move ${path-to-quarantine_directory}
    try on your machine
    explain this command
tool overview