How to scan with the clam Antivirus on Linux.

December 8th, 2012 by Andrea Matesi 1504 Views

ClamAV is "the (only...) Antivirus" when referring to Linux.

To scan from the cli is very easy:

cd /dir/to/scan
root@srvr101 [/home/guido]# clamscan -r -v -i --bell  > clamscan-guido-infected.log 2>clamscan-guido-error.log &

-r Stands for recursive.

-v Is for verbose.

-i Prints the infected files only.

--bell sounds a bell for every positive result found.

The infected scan result will be put inside the clamscan-guido-infected.log and the standard error log will be written inside clamscan-guido-error.log.

The & will execute the scan on the background and the prompt will allow you to do whatever you wish during the scan.

Senior Professional Network and Computer Systems Engineer during work hours and father when home.

Andrea strives to deliver outstanding customer service and heaps of love towards his family.

In this Ad-sponsored space, Andrea shares his quest for "ultimate" IT knowledge, meticulously brought to you in an easy to read format.

Rate this post

Posted in LINUX, System Administration | Comments Off on How to scan with the clam Antivirus on Linux.

Comments are closed.