Install & Use ClamAV on Linux
Print- install clamav, linux antivirus, clamav, clamav scan, virus scan linux, malware protection, devsecops, open source antivirus, linux security, terminal tools
- 0
ClamAV is a free, open-source antivirus engine designed for Linux systems. It’s widely used for scanning files and systems for malware, viruses, and threats. In this guide, you'll learn how to install ClamAV, update its virus definitions, and perform scans.
Step 1: Install ClamAV
For Debian/Ubuntu systems, run:sudo apt update && sudo apt install clamav clamav-daemon -y
Step 2: Update Virus Definitions
Use the freshclam tool:sudo freshclam
If the service is running, stop it first:sudo systemctl stop clamav-freshclam
Step 3: Run a Manual Scan
Scan a specific folder:clamscan -r /path/to/directory
To only show infected files:clamscan -r --infected /path/to/directory
Step 4: Full System Scan
sudo clamscan -r --infected --bell /
This can take time depending on your system size.
Watch the tutorial:
https://www.youtube.com/watch?v=8-IisHDZHYU
ClamAV is ideal for system admins and developers looking to secure their Linux systems with a reliable open-source antivirus tool.
