How to remove infected files after scan (ClamAV)

Umpol

Verified User
Joined
May 14, 2008
Messages
28
Dear All

I know scan command like

Code:
/usr/bin/clamdscan DIRECTORY

but after scan clamav do not thing. I would like clamav to remove all infected files. may be


Code:
/usr/bin/clamdscan DIRECTORY --remove

or


Code:
/usr/bin/clamdscan --remove DIRECTORY

:confused: :confused:
 
Last edited:
any directory you want to scan I would like to recommend home so the command line should be

So you mean DIRECTORY not DIRECTOR. Its good to be clear especially when we are talking about commands. DIRECTORY and DIRECTOR are not the same words.

Also you mean the real directory should replace DIRECTORY and the word DIRECTORY itself should not be used. Its good to explain these thing to new people. If you read these forums on a regular basis you will see that there are a lot of new admins who will take your commands literally.
 
Back
Top