Clamv virus scanning
Yum installation method
1)Install epel source
yum -y install epel-release
2)Install clamd
yum -y install clamd
3)update the virus database
freshclam
4) Virus scanning
clamdscan
//Update virus library regularly (every 6 hours, haha)
# crontab -e
* */12 * * * /usr/bin/freshclam --quiet --daemon
test
# /usr/local/clamav/bin/clamscan
Some examples of common usage
1, Scan a directory, clamscan -r /home/oicqzone
2. Save the scan results to log, clamscan -r /home/oicqzone -l/tmp/clamav.log
3. During scanning, only the files with problems are displayed and an alarm sound is sounded, clamscan -r --bell -i /home/oicqzone