Options (4)
-r, --recursivebooleanScan all files recursively in a specific directory
Example:
clamscan {{[-r|--recursive]}} {{path/to/directory}}-d, --databasebooleanSpecify a virus database file or directory of files
Example:
clamscan {{[-d|--database]}} {{path/to/database_file_or_directory}}-i, --infectedbooleanScan the current directory and output only infected files
Example:
clamscan {{[-i|--infected]}}-l, --logbooleanPrint the scan report to a log file
Example:
clamscan {{[-l|--log]}} {{path/to/log_file}}Examples (8)
Scan a file for vulnerabilities
clamscan path/to/fileScan all files recursively in a specific directory
clamscan [-r|--recursive] path/to/directorySpecify a virus database file or directory of files
clamscan [-d|--database] path/to/database_file_or_directoryScan 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_fileMove infected files to a specific directory
clamscan --move path/to/quarantine_directorymade by @shridhargupta | data from tldr-pages