Clam is one of the best antivirus software for all the linux distributions. Although its made under GPL so its free for everyone. Clam antivirus will protect you while downloading files from the internet, scans ftp file transactions, etc.
how to install clamav on ubuntu
Install Clam Antivirus To protect your Ubuntu Server from viruses and other threats. First get Clam antivirus for Ubuntu.
sreekanth@DigitPAGE:~$ sudo apt-get install clamav
Update ClamAV’s virus definitions/database to latest version and get up to date virus protection. The below command simply update virus definitions of Clam.
sreekanth@DigitPAGE:~$ sudo freshclam
How to scan a directory with ClamAV (Clam Antivirus)
After installing ClamAV on Ubuntu server, Scan a specific directory with ClamAV. Make sure you run this command as root or with sudo. The command need to access all the directories and files to scan. Without a sudo may fail to scan due to permission issues.
sreekanth@DigitPAGE:~$ sudo clamscan -r /home/sreekanth/
Run the below command to scan and move only the infected files to a folder (create that folder before running the command)
sreekanth@DigitPAGE:~$ sudo clamscan -r –move=/tmp/infected /home/sreekanth/
For more visit : ClamAV