Linux: Anti-Virus Software
If you are using Linux as desktop, you might need a virus scanner. Yes, these days, you do.
# install virus scanner sudo apt-get install clamav
The commands are
Update virus database:
# update virus database: sudo freshclam
Here's a sample output:
◆ xah@xah-p6813w◆ 2014-08-03 02:56 ◆ /media/OS/Users/xah/web ◆ sudo freshclam [sudo] password for xah: ClamAV update process started at Sun Aug 3 02:56:32 2014 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.98.1 Recommended version: 0.98.4 DON'T PANIC! Read http://www.clamav.net/support/faq main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo) daily.cld is up to date (version: 19259, sigs: 1087865, f-level: 63, builder: neo) bytecode.cvd is up to date (version: 242, sigs: 46, f-level: 63, builder: dgoddard)
Note: it might report that your ClamAV is outdated. This is because the software from apt-get is often outdated. You'll need to follow the linked FAQ and compile the binary yourself.
# scan home dir for virus. Print only infected files. Write result to file clamscan -r -i -l "scan_result.txt" /home
# scan system dir for virus, log to file clamscan -r -i -l scan_result.txt --exclude-dir='^/sys|^/proc|^/dev|^/lib|^/bin|^/sbin' /
see its man pages. For example,
- Linux: Get System Info
- Linux: Basic Shell Commands
- Linux: Text Processing: grep, cat, awk, uniq
- Linux: Sort Lines
- Linux: Traverse Directory: find, xargs
- Linux: Compare Files or Directory: diff
- Linux: Show Directory Size: du
- Linux: View Directory as Tree
- vim Basics
- Linux: Compression How-to: tar gzip bzip2 xz 7zip rar zip
If you have a question, put $5 at patreon and message me.