Scan a folder with clamscan

To scan a folder, run

clamscan -r /path/to/folder/

-r will scan sub folders too.

To Scan a Folder (Only Show Infected)

clamscan -ri /path/to/folder/

To exclude a folder from search, use

clamscan -ri --exclude-dir="^/opt/zimbra/store" /opt/zimbra/

See clamav

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *