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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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