Skip to content

Instantly share code, notes, and snippets.

@deeftah
Forked from jmolinasoler/clamav commands
Created October 1, 2018 12:00
Show Gist options
  • Save deeftah/bba89e26e09c1b62fe242ba5eb42052a to your computer and use it in GitHub Desktop.
Save deeftah/bba89e26e09c1b62fe242ba5eb42052a to your computer and use it in GitHub Desktop.
# installation
sudo apt-get install clamav clamav-daemon
sudo yum install clamav
# build the database
sudo freshclam
# Scan the home to find virus, make sound when found
sudo clamscan -r /home/user --bell
# Clean any potential virus found
sudo clamscan --infected --remove --recursive /home/user
# Activate background daemons
sudo /etc/init.d/clamav-daemon start
sudo /etc/init.d/clamav-freshclam start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment