How to quarantine or delete infected files with ClamAV?

I scanned the home directory using ClamAV which found 13 threats.
The list was also displayed, but when I tried to delete or quarantine files, it did not proceed. Any ideas?

Answer

You can use clamscan with the option --remove to automatically remove all infected file in the scanned folder. WARNING: Files are gone.

clamscan -r --remove /home/USER

Another possibility is to move the infected files to another folder with the option --move=FOLDER, so you can later check which files of them maybe not infected or a virus.

clamscan -r --move=/home/USER/VIRUS /home/USER

See: How do I scan for viruses with ClamAV?

Attribution
Source : Link , Question Author : Sivamani , Answer Author : Community

Leave a Comment