Page 1 of 1

How To Find Infected Files Running clamcan -r and move them

Posted: Tue 28 Jul 2015, 15:44
by michaellowe
Install clamav if you dont have it already:

check out http://murga-linux.com/puppy/viewtopic.php?t=53171 for info

run this command if you want to scan recursively and move the infected files to eg. /somewhere

here run this:

Code: Select all

clamscan -r --move=/home/USER/VIRUS /home/USER
just replace /home/USER/Virus with /.../... (wherever you want)
and /home/USER with whichever directory you are wanting to scan like your whole filesystem /

the above example was taken fro launchpad for ubuntu usesr so it will differ for each different OS naturally

mine is eg:

Code: Select all

clamscan -r --move=/mnt/home/vault /
Funnily enough i did find that there is already a directory for the found infected viruses at / called Virus

Nevermind, they both work ;-)

Posted: Tue 28 Jul 2015, 21:04
by Flash
This is a continuation of a thread on this subject that michaellowe started here.