Protect Your System: How to Scan for Viruses on Ubuntu with ClamAV
Keep Your Ubuntu Machine and Your Friends’ Computers Safe
While Linux is less targeted by viruses than other operating systems, it’s not immune. More importantly, your Ubuntu machine can unknowingly harbor and pass on viruses to Windows users. The ‘Ubuntu System Administration Guide’ recommends using ClamAV, an open-source antivirus tool, to keep your system clean.
Installing and Using ClamAV
Getting started is easy. Install both the command-line tool and its graphical interface with:
sudo apt-get install clamav clamtk
You can quickly scan a specific folder, like your ‘Downloads’ directory, right from the terminal:
clamscan Downloads/
For easier use, the ClamTK graphical interface allows you to schedule regular scans of your home folder and automate the process of updating the virus database. It’s a simple step to ensure you’re not inadvertently sharing malicious files.
This post is based from content of the book Ubuntu System adminstration guide. And the book can be found here https://www.amazon.com/stores/Mattias-Hemmingsson/author/B0FF5CQX13