I know how to scan one directory:
clamscan -r /home
but for the life of me I cannot seem to get multiple directories working and I cannot seem to Google this simple problem.
I have tried:
clamscan -r /home /otherdir
clamscan -r /home,/otherdir
to no avail.
What am I doing wrong?
You have to put the list of folders/files in a text file and pass it to clamscan using -f.
Example:
clamscan -r -z -i --bell --file-list=/home/nav/ClamScanTheseFolders.txt
Credit: https://www.howtoforge.com/tutorial/configure-clamav-to-scan-and-notify-virus-and-malware/
Note that currently in Debian 10, I can scan two directories by simply passing them both at the command line:
The switches stand for:
This will result in: