1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-06 18:55:26 +02:00
tldr/pages/common/clamscan.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

804 B

clamscan

A virus scanner. More information: https://docs.clamav.net/manual/Usage/Scanning.html#clamscan.

  • Scan a file for vulnerabilities:

clamscan {{path/to/file}}

  • Scan all files recursively in a specific directory:

clamscan {{[-r|--recursive]}} {{path/to/directory}}

  • Scan data from stdin:

{{command}} | clamscan -

  • Specify a virus database file or directory of files:

clamscan {{[-d|--database]}} {{path/to/database_file_or_directory}}

  • Scan the current directory and output only infected files:

clamscan {{[-i|--infected]}}

  • Print the scan report to a log file:

clamscan {{[-l|--log]}} {{path/to/log_file}}

  • Move infected files to a specific directory:

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

  • Remove infected files:

clamscan --remove yes