Lab 2-3
Lab 2-3
OS Install:
Check the installed version of the “clamav” scanner for verification purposes:
clamscan –version
Keeping this in view, Let’s update the installed “ClamAV” signature database:
sudo freshclam
When all the updates are downloaded, start/enable the “freshclam” service again
with the help of the “systemctl” command:
Download Updates Using Official Website (Second
Method)
Another way is to download the “ClamAV” database from its official website
https://database.clamav.net/daily.cvd
Copy the “daily.cvd” file into the “var/lib/clamav” file through the copy command
“cp”:
sudo cp daily.cvd /var/lib/clamav/
The “clamscan” provides a wide range of options that can be seen through its
“help” command:
Scan a Directory
Execute the “clamscan” command with the “sudo” combination to scan the
“Documents” directory “–recursive (including subdirectories)” in this format:
Next, we create the file test.txt with the command sudo nano test.txt, this file will
contain 2 words "hello world". Then we use this command to scan: clamscan -d
Clam_HelloWorld.ndb test.txt