I. Introduction
Clam AntiVirus is a free anti-virus software based on UNIX/LINUX operating systems. It supports online updating of virus libraries.
Features 1.1
1) GNU open-source software
2) Fast Scanning
3) It can detect 35000 types of viruses, including Microsoft Office documents and macro viruses.
4) ability to detect compressed files (Zip RAR Tar Gzip Bzip2 ......)
5) Powerful email Scanning
6) high scalability
1.2 virus submission
If you find a virus that ClamVA cannot kill, you can enter relevant information on the following URL:
Http://www.clamav.net/sendvirus.html
Official Website:
Http://www.clamav.net/lang/en/
Http://www.clamav.net/sendvirus.html
Ii. Installation
[Root @ test2 tools] # ll
Total usage 37400
-Rw-r -- 1 root 2055832 March 20 23:59 clamav-0.97.7-1.el6.rf.x86_64.rpm
-Rw-r -- 1 root 35995544 March 20 23:59 clamav-db-0.97.7-1.el6.rf.x86_64.rpm
-Rw-r -- 1 root 8116 March 20 23:59 clamav-devel-0.97.7-1.el6.rf.x86_64.rpm
-Rw-r -- 1 root 75032 March 20 23:59 clamav-milter-0.97.7-1.el6.rf.x86_64.rpm
-Rw-r -- 1 root 154456 March 20 23:59 clamd-0.97.7-1.el6.rf.x86_64.rpm
Drwxr-xr-x 2 root 4096 May 10 16:29 xxx
Install with rpm:
Rpm-ivh clamd-0.97.7-1.el6.rf.x86_64.rpm
Rpm ivhclamav-0.97.7-1.el6.rf.x86_64.rpm
...
Iii. Settings
Comment out the Example items in the/etc/clamav/freshclam. conf and clamav. conf files respectively.
4. Update the virus Database
Run freshclam
5. Start the system
/Etc/rc. d/clamav restart
6. virus detection and removal
There are two Commands: clamscan and clamdscan. These two commands are used in a similar way. Here we will mainly introduce clamscan.
Example
(0) scan the specified file:
Clamscan file
(1) scan the current directory:
Clamscan
(2) scan all files (including subdirectories) in the/home directory ):
Clamscan-r/home
Clamscan-r/(scan all directories and Their subdirectories)
(3) Load databasefrom selected file and limit disk usage to 50 Mb:
Clamscan-d/tmp/newclamdb -- max-space = 50 m-r/tmp
(4) scan data streams:
Cat testfile | clamscan-
(5) check the mail directory:
Clamscan-r -- mbox/var/spool/mail
Other differences
-L [path] [file name] add scan report
# Clamscan-l/var/log/clamscan. log/
-- Move [path] to move the virus file ..
-- Remove [path] Delete Virus files
-- Unzip (unrar) decompress the compressed file for scanning
Return Value
0: no virus
1: virus discovered
40: Unknown options passed
50: Database initialization error
52: Unsupported File Format
53: the directory cannot be opened.
54: file cannot be opened (ofm)
55: File Read error (ofm)
56: Can't stat input file/directory.
57: Can't get absolute path name of current working directory.
58: I/O error. Check the file system.
59: the current user information cannot be obtained in/etc/passwd.
60: the user information of 'clamav' (default name) cannot be obtained in/etc/passwd.
61: Can't fork.
63: temporary files/directories cannot be created (check permissions ).
64: the temporary directory cannot be written (please specify another directory ).
70: memory cannot be allocated or released (calloc ).
71: memory cannot be allocated (malloc ).
For details about ClamTk, click here
ClamTk: click here