Install ClamAV and Scan Viruses with ClamAV

Install ClamAV and Scan Viruses with ClamAV
Facebooktwitterredditpinterestlinkedinmail

Installing ClamAV in UBUNTU

sudo apt-get install clamav

After installation you have to update ClamAV

sudo freshclam

For scan viruses you have to use below mentioned command.

clamscan OPTIONS File/Folder

Below mentioned command will check all files in root and displaying the name of each file:

clamscan -r /

Below mentioned command will check all files in root but only display infected files and ring a bell when found:

clamscan -r --bell -i /

Below mentioned command will check all files in root but only display infected files when found and have this run in the background:

clamscan -r -i / &

Below mentioned command will check files in the all users home directories:

clamscan -r /home

Below mentioned command will check files in the USER home directory and move infected files to another folder:

clamscan -r --move=/home/USER/VIRUS /home/USER

Below mentioned command will check files in the USER home directory and remove infected files (WARNING: Files are gone.):

clamscan -r --remove /home/USER

To see all available help options:

clamscan --help

Note: To see running background process use below mentioned command.

jobs
Facebooktwitterredditpinterestlinkedinmail