Install Clamav (Clam Antivirus) On Ubuntu

hrdedicated
Site Admin
Posts: 50
Joined: Thu May 30, 2013 10:28 pm

Install Clamav (Clam Antivirus) On Ubuntu

Postby hrdedicated » Fri May 31, 2013 1:05 pm

Install Clamav (Clam Antivirus) On Ubuntu


Image


This short, simple tutorial will explain how to install and use Clamav with Ubuntu.

To install Clamav,



root# sudo apt-get install clamav

Install Clam AV Automated Package

root:# sudo apt-get install clamav-daemon


Clam AV Usage


Open the terminal
Run a scan
Scan the home directory and recursive files and folders.
root# clamscan -r /home
Scan everything
root# clamscan -r /


Output Sample:

----------- SCAN SUMMARY -----------
Known viruses: 2304039
Engine version: 0.97.8
Scanned directories: 29545
Scanned files: 111854
Infected files: 0
Total errors: 18080
Data scanned: 3206.81 MB
Data read: 6249.99 MB (ratio 0.51:1)
Time: 307.823 sec (5 m 7 s)

hr-ethadmin
Site Admin
Posts: 67
Joined: Fri May 31, 2013 1:04 pm

Re: Install Clamav (Clam Antivirus) On Ubuntu

Postby hr-ethadmin » Sat Jun 01, 2013 11:08 am

# To scan all files (and sub directories) in public_html folder and then remove infected files automatically, use following command.
Note : Be careful while removing infected files automatically. Make sure that you have backup for all those files.

clamscan -ir --remove public_html/



clamscan -ir --remove /home/*/public_html/


Return to “Hostripples dedicated Servers (Linux/Windows)”

Who is online

Users browsing this forum: No registered users and 2 guests