Skip to content

Instantly share code, notes, and snippets.

@mtask
Last active September 18, 2015 11:07
Show Gist options
  • Save mtask/e35dd65a306d8d1ee316 to your computer and use it in GitHub Desktop.
Save mtask/e35dd65a306d8d1ee316 to your computer and use it in GitHub Desktop.
ClamAV basic usage

##Clamav basic usage

  • Update db:

$ sudo freshclam

  • Basic scan:

$ clamscan OPTIONS File/Folder

  • 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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment