How To Find Infected Files Running clamcan -r and move them
Posted: Tue 28 Jul 2015, 15:44
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:
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:
Funnily enough i did find that there is already a directory for the found infected viruses at / called Virus
Nevermind, they both work
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
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 /
Nevermind, they both work