I am using “KlamAV” as a GUI tool to manage and use ClamAV antivirus. You can also use “clamtk” as a GUI to use CLAMAV in Gnome or KDE.
Use following command to install “clamtk”
sudo apt-get install clamtk
Once it is installed on your machine, then install anti-virus updater, so that you can get latest update of ClamAV from Internet.
Use command “sudo freshclam” to update ClamAV database.
clamdscan -V
To do command line scanning:
1. To scan specific folder:
sudo clamscan -r /home/directoryname/subdirectory
Above command will display the name of files in subdirectory on the screen. You can use -i parameter to display only infected files.
2. To scan all files on your computer
sudo clamscan -r –bell -i /
Above command will display only infected files and will bell the ring when virus found.
3. To remove infected file from your computer
sudo clamscan -r -remove /