Detecta troyanos, virus, malware y otras amenazas maliciosas.
# freshclam -v
# freshclam -d -c 24
# clamscan -i
# clamscan -ri --remove /home/usuario
# clamscan -r /home /etc /var --infected
# clamscan -v -r -l test_clamav.txt
# clamscan -v -r --bell --move=/home/usuario/cuarentena -l /var/log/clamav/clamav.log /media/win
# clamscan -r --infected /home/USER/Descargas /home/USER/Documentos
# clamscan -r --infected --max-filesize=50M --max-scansize=50M /home/USER
# find /home/tux -type f -mtime -7 -exec clamscan --infected {} \;
# nice -n 19 sudo clamscan -r --infected /home/tux > scan_results.txt 2>&1 &
# nice -n 19 clamscan -r -i --max-filesize=50M --max-scansize=50M --exclude-dir="^/home/USER/\.cache" --exclude-dir="^/home/USER/\.local/share/Trash" --exclude-dir="^/home/USER/\.npm" --exclude=".*\.tiff$" /home/USER
# nice -n 19 clamscan -r -i --max-filesize=50M --max-scansize=50M --exclude-dir="^/home/tux/\.(cache|local|npm|config|mozilla|thunderbird)" /home/USER
# sigtool --list-sigs > list
# clamdtop
# clamconf
# dpkg-reconfigure clamav-base
1.-
Para el archivo de configuración
# cp /usr/share/doc/clamav-freshclam/examples/freshclam.conf.sample /etc/clamav/clamav.conf
Y descomentar lo que se cree necesario.
2.-
Para asegurarse de que clamav y las definiciones estén instaladas correctamente, se puede escanear el archivo de prueba EICAR [una firma inofensiva sin código de virus]:
$ curl https://secure.eicar.org/eicar.com.txt | clamscan -
La salida debe incluir:
stdin: Win.Test.EICAR_HDB-1 FOUND
3.-
Para ver algún log concreto por ejemplo un error.
$ clamscan -i -v -r /home/USER 2>&1 | tee /tmp/clamscan.log
$ grep -iE 'error|cant|cannot|permission denied' /tmp/clamscan.log