Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Clamv virus scanning

Shulou Source: shulou.com Published: 2022-06-01 07:54:16 10月03日 Update

Yum installation method

1)Install epel source

yum -y install epel-release

2)Install clamd

yum -y install clamd

3)update the virus database

freshclam

4) Virus scanning

clamdscan

//Update virus library regularly (every 6 hours, haha)

# crontab -e

* */12 * * * /usr/bin/freshclam --quiet --daemon

test

# /usr/local/clamav/bin/clamscan

Some examples of common usage

1, Scan a directory, clamscan -r /home/oicqzone

2. Save the scan results to log, clamscan -r /home/oicqzone -l/tmp/clamav.log

3. During scanning, only the files with problems are displayed and an alarm sound is sounded, clamscan -r --bell -i /home/oicqzone

Tags: Viruses virus libraries updates sounds general files hours directories results alerts procedures problems tests Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MySQL Xiaomi NVidia Linux