Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed ClamAV Install clamav via Terminal (Ctrl+Alt+T) with:

sudo apt-get install clamav

but how can I scan for viruses?

share|improve this question
up vote 88 down vote accepted


At first you have to update the virus definitions with:

sudo freshclam

Then you can scan for viruses.

clamscan OPTIONS File/Folder 

If necessary start with root permissions: sudo clamscan.


  • To check all files on the computer, displaying the name of each file:

    clamscan -r /
  • To check all files on the computer, but only display infected files and ring a bell when found:

    clamscan -r --bell -i /
  • To scan all files on the computer but only display infected files when found and have this run in the background:

    clamscan -r -i / &

    Note - Display background process's status by running the jobs command.

  • To check files in the all users home directories:

    clamscan -r /home
  • To check files in the USER home directory and move infected files to another folder:

    clamscan -r --move=/home/USER/VIRUS /home/USER
  • To check files in the USER home directory and remove infected files (WARNING: Files are gone.):

    clamscan -r --remove /home/USER
  • To see more options:

    clamscan --help


Graphical User Interface: ClamTK Install clamtk

ClamTk is a frontend for ClamAV. You can install it via Terminal with:

sudo apt-get install clamtk

You can get the latest version from Bitbucket as Debian package.

There is also a PPA (Outdated):

sudo apt-add-repository ppa:landronimirc/clamtk
sudo apt-get update && sudo apt-get install clamtk

clamtk screenshot

Scan Menu: Here you can choose a file, folder or a device for scanning

clamtk scan menu screenshot

View Menu:

clamtk view menu screenshot

Quarantine Menu:

clamtk quarantine menu screenshot

Advanced Menu:

clamtk advanced menu screenshot

Help Menu: Here you can check for updates.

clamtk help menu screenshot


share|improve this answer
I think it's a mistake to not create at leat man page for clamav, wich is the name of the package. – erm3nda Jun 23 '15 at 3:06
Autocomplete would give you the right package in a heartbeat. As would the 0.5 seconds it takes to use Google. – Ken Sharp Jan 29 at 2:58

protected by Community Nov 14 '14 at 6:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.