Skip to content

Instantly share code, notes, and snippets.

@rohitfarmer
Created August 2, 2017 14:33
Show Gist options
  • Save rohitfarmer/5478dd21bdf3e8e67420cce59a35650c to your computer and use it in GitHub Desktop.
Save rohitfarmer/5478dd21bdf3e8e67420cce59a35650c to your computer and use it in GitHub Desktop.
Clam anti virus commands
To scan and ring the bell when infected files are found
-------------------------------------------------------
clamscan -r –bell -i /home/bill/Downloads
To scan the whole system (it may take a while) and remove all infected files in the process, you can use the command in the
following form: “clamscan -r –remove /”. Sometimes, simply removing infected files can cause even more problems or breakages.
I suggest that you should always check the output first and then take manual action. Alternatively, you may also use the “move”
command integrated as a parameter in the form of” “--move=/home/bill/my_virus_collection” (example directory).
To update virus database
------------------------
sudo freshclam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment