1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 08:22:09 +02:00
tldr/pages/common/clamscan.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

734 B

clamscan

A command-line virus scanner. More information: https://www.clamav.net.

  • Scan a file for vulnerabilities:

clamscan {{path/to/file}}

  • Scan all files recursively in a specific directory:

clamscan -r {{path/to/directory}}

  • Scan data from stdin:

{{command}} | clamscan -

  • Specify a virus database file or directory of files:

clamscan --database {{path/to/database_file_or_directory}}

  • Scan the current directory and output only infected files:

clamscan --infected

  • Output the scan report to a log file:

clamscan --log {{path/to/log_file}}

  • Move infected files to a specific directory:

clamscan --move {{path/to/quarantine_directory}}

  • Remove infected files:

clamscan --remove yes