How to optimize folder scanning with the ClamAV antivirus?
If you use ClamAV on a daily basis, you are certainly asking yourself the question: "How can I scan a folder as quickly as possible without impacting server resources?"
To answer this question, I created the clamdscan.sh script for Linux, under the Apache 2.0 license.
clamdscan.sh allows you to scan the current folder, recursively or not, using
80% of the CPU idle time.
Why 80% and not 100%?
Because this leaves CPU time for:
- The Linux kernel
- Input/output operations (I/Os)
- Other programs running in the background.
Two usage examples
Usage is very simple:
- Scan the current folder, non-recursive
./clamdscan.sh
- Recursive scan of the current folder
./clamdscan.sh -r
Download clamdscan.sh, it's free
clamdscan.sh is available on our github.com page.
And if you use clamdscan.sh, it would be nice to give a little star to the GitHub project ★.
Some suggestions on the topic of ClamAV
Did you enjoy this article? Here are some suggestions you should like:
Tags
ANTIVIRUS
CLAMAV
LINUX
MALWARE
Inscription à notre lettre d'information
Inscrivez-vous à notre
lettre d'information pour vous tenir au courant de nos actualités et de nos dernières trouvailles.