Skip to content

Instantly share code, notes, and snippets.

@calag4n
Last active September 7, 2022 16:30
Show Gist options
  • Save calag4n/0252eb56a70aa6a9c4d9e97d7dc41498 to your computer and use it in GitHub Desktop.
Save calag4n/0252eb56a70aa6a9c4d9e97d7dc41498 to your computer and use it in GitHub Desktop.

Install clamav

apt install clamav

Run a scan

Go into the desired directory to scan then start with :

clamscan -ir

See the progress

In another terminal, enter :

watch "lsof -Fn -p `pidof clamscan` | grep ^n\/[^tpdul] | cut -c1 --complement | tail -n1"

Error cases

If output says

LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav

Enter

    sudo service clamav-freshclam stop
    sudo freshclam
    sudo service clamav-freshclam start

(thanks to issue )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment