به نظرم بهتره بعضی پست ها رو اپدیت کرد .
در ورژن اوبونتو 16.04 خودش clamtk که رابط گرافیکی clamav هست رو داره ولی برای استفاده از خط فرمان باید clamav رو نصب کرد که به این شکل :
For Ubuntu/LinuxMint/Debian #
$ sudo apt-get install clamav clamav-daemon
حالا یک سری دستورات clamav برای اسکن :
# Scan all files on the computer #
# clamscan -r /
# Scan all users home directories #
# clamscan -ri /home
# Scan all files on the computer, but only display infected files and ring a bell when found #
# clamscan -r --bell -i /
# Move all the infected files list on a particular file #
# clamscan -r /folder/to/scan/ | grep FOUND >> /path/to/save/report/file.txt
# Scan files in the USER home directory and save infected files to specific file #
# clamscan -ril /var/log/clamscan.log /home/USER
# Scan files in the USER home directory and remove infected files #
# clamscan -r --remove /home/USER
# Scan files in the USER home directory and exclude 2daygeek directory #
# clamscan --exclude=2daygeek -i -r /home/USER
برای اسکن اتوماتیک :
Create a file called clamav_scan under /etc/cron.daily/ directory and paste below script to run ClamAV Automatically on your system daily. Make sure you should give executable permission
# nano /etc/cron.daily/clamav_scan
#!/bin/bash
SCAN_DIR="/home"
LOG_FILE="/var/log/clamav/dailyscan.log"
/usr/bin/clamscan -ri $SCAN_DIR >> $LOG_FILE
بعد دسترسی باید داد به فایل :
/etc/cron.daily/clamav_scan
# chmod +x /etc/cron.daily/clamav_scan
و مسیر لاگ فایل :
/var/log/clamav/dailyscan.log