Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use linux clamav

Shulou Source: shulou.com Published: 2022-06-01 03:21:11 10月01日 Update

How to use linux clamav, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Do you need antivirus tools under linux? I have always thought that it is not necessary, there are very few linux-based viruses, and linux security protection is also very good, which is generally very difficult to break. I think those hackers prefer to write viruses under windows, which are used by many people and are easy to spread. The following operations are carried out as an administrator.

First, install clamav

Apt-get install clamav

Depending on the system, use different commands, yum,pacman, etc. If the package cannot be found, only the following source code is compiled by itself.

Second, download the virus library

Freshclam

The above command is to update the virus library, if not, it will be downloaded automatically, but slowly. You can also download it manually, http://www.clamav.net/lang/en/, and main.cvd,daily.cvd the next two. Just put the downloaded virus library files in the / var/lib/clamav directory, and that's fine.

Third, check the clamav process.

Root@ubuntu:/home/zhangying# ps ax | grep clam4858? Ss 0:00 / usr/bin/freshclam-d-- quiet5401 pts/0 S+ 0:00 grep-- color=auto clam

Fourth, some examples of conventional usage

1. Scan a directory, clamscan-r / home/zhangying

2. Store the scan results in log, clamscan-r / home/zhangying-l / tmp/clamav.log

3. During the scan, only the problematic files are displayed and the alarm sound is sounded, clamscan-r-- bell-I / home/zhangying

4, scan to the problem file, delete directly, clamscan-r-- remove / home/zhangying, this step should be careful, it is best not to do so, if you delete the system file will be troublesome. Could cause the system to crash.

Fifth, scan results

Root@ubuntu:/home/zhangying# clamscan-r / home/zhangying/me-l. / scan.logLibClamAV Warning: * * LibClamAV Warning: * This version of the ClamAV engine is outdated. * * LibClamAV Warning: * DON'T PANIC! Read http://www.clamav.net/support/faq * LibClamAV Warning: * * / home/zhangying/me/admin/sqlnet.ora: OK/home/zhangying/me/admin/tnsnames.ora: OK/home/zhangying/me/admin/listener.ora : OK/home/zhangying/me/admin/shrept.lst: OK/home/zhangying/me/admin/samples/sqlnet.ora: OK/home/zhangying/me/admin/samples/tnsnames.ora: OK/home/zhangying/me/admin/samples/listener.ora: OK- SCAN SUMMARY-Known viruses: 1010069Engine version: 0.96.5Scanned directories: 3Scanned files: 7Infected files: 0Data scanned: 0.17 MBData read: 0.14 MB (ratio 1.08 sec 1) Time: 3.024 sec (0 m 3 s) is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Viruses files virus libraries systems different commands directories results problems help clarity security content only sound security protection for this tools general manual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Docker Microsoft Apple