clamscan Command Examples

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

clamscan {{path/to/file}}

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

{{command}} | clamscan -

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

clamscan --infected

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

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

clamscan --remove yes