Skip to main content

Malware Scans

====================================================================================

ClamAV

ClamAV is a widely used open-source antivirus engine designed for detecting viruses, malware, and other threats on Linux systems.

ClamAV Usage

Update the clamscan malware database.

freshclam

Start a clamscan

clamscan [options] /path/to/scan

Depending on the size of the path you're scanning, the scan can take a while. It would be worth running the scan in a screen to ensure that the process isn't interrupted or killed when your session closes.

Start a new screen: screen
Show screens: screen -ls
Connect to existing screen: screen -r name

ClamAV Options
-r recursive
-i only print infected files.
-l /path/to/log specify log file for clamscan output
--move=/path/to/dir Move infected files to a specified directory

====================================================================================