显然,您需要告诉ClamAv将感染文件的报告放在哪里。查看维基百科,该软件似乎并不出色,如果安全是您的首要关注点,则可能有更好的软件包可供使用。但是,ClamAV是开源和免费的,因此如果预算是优先考虑的话,它可能是最好的选择。
Infected files reporting
In case you are recursively scanning the whole /home folder (or even
the whole system) from a terminal emulator on your GUI, possibly there
will be lots of files. In that case, as the output you will get is not
infinite, it probably will help to generate a report containing the
paths to all infected files. In that case you can do the following:
sudo clamscan -r /folder/to/scan/ | grep FOUND >> /path/to/save/report/file.txt
Be patient if you run that command and it doesn't seem to be working
because even if you don't see the complete output it is really
scanning the files. When you see the prompt again, that will mean the
scan is finished and that you can open the file it has created to
check any infected file detected in your system.
As Clamav doesn't disinfect the files, sometimes will be better to
just know what are the infected files before putting it on quarantine
or removing it. For example, you could be using Wine and by deleting
an infected file you could break a program without having saved some
data.
clamscan -avr
(如果没记错的话),它对文件的情况非常清楚明了。 - Andrea Lazzarotto