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

To scan from the cli is very easy:

cd /dir/to/scan
[email protected] [/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.

How to scan with the clam Antivirus on Linux.
Rate this post
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.