How to scan for viruses on Linux 12/12/2023 1 min read Install clamav # Debian/Ubuntusudo apt install clamav # Archsudo pacman -S clamav # RHEL/CentOS/Fedorasudo dnf install clamav Update the virus definitions sudo freshclam Scan # a fileclamscan <file> # a directoryclamscan -r <directory> # linux # cli # security