snippetbashTip
clamdscan — Scan for viruses using the ClamAV Daemon. More information: <https://docs.clamav.net/manual/Usage/Sc
Viewed 0 times
clamdscanthecommandclivirusesusingscanfor
Problem
How to use the
clamdscan command: Scan for viruses using the ClamAV Daemon. More information: <https://docs.clamav.net/manual/Usage/Scanning.html#clamdscan>.Solution
clamdscan — Scan for viruses using the ClamAV Daemon. More information: <https://docs.clamav.net/manual/Usage/Scanning.html#clamdscan>.Scan a file or directory for vulnerabilities:
clamdscan {{path/to/file_or_directory}}Scan data from
stdin:{{command}} | clamdscan -Scan the current directory and output only infected files:
clamdscan --infectedPrint the scan report to a log file:
clamdscan --log {{path/to/log_file}}Move infected files to a specific directory:
clamdscan --move {{path/to/quarantine_directory}}Remove infected files:
clamdscan --removeUse multiple threads to scan a directory:
clamdscan --multiscanPass the file descriptor instead of streaming the file to the daemon:
clamdscan --fdpassCode Snippets
Scan a file or directory for vulnerabilities
clamdscan {{path/to/file_or_directory}}Scan data from `stdin`
{{command}} | clamdscan -Scan the current directory and output only infected files
clamdscan --infectedPrint the scan report to a log file
clamdscan --log {{path/to/log_file}}Move infected files to a specific directory
clamdscan --move {{path/to/quarantine_directory}}Context
tldr-pages: common/clamdscan
Revisions (0)
No revisions yet.