Manually Scanning for Viruses
October 13, 2008 Virus Control
Using Clamscan to Manually Scan Directories
Typically you would allow amavisd-new to control the scanning process. However, there may come a time when you want to manually scan a directory or file that is suspicious.
1. Scan a File
clamscan filename
2. Scan Current Working Directory
clamscan
3. Recurrsive Scan of Directory
This command will scan and only report infected files.
clamscan -r – -infected /home
4. Scan Data Stream
cat file | clamscan-
5. Scan Mail Directory
clamscan -r /var/spool/mail

