This article covers how to install and configure ClamAV and ClamTK to scan for malware on Ubuntu 20.04.
There aren't many viruses made for Linux distributions and as such, most people who use such systems don't even bother using antivirus software.
Those however who do want to be able to scan their system or other Windows-based systems that are connected to a Linux PC through a network can use ClamAV.
ClamAV is an open-source anti-virus engine that is built to detect viruses, trojans, malware, and other threats.
It supports multiple file formats (documents, executables, or archives), utilizes multi-thread scanner features, and receives updates for its signature database at least 3-4 times a day.
To ClamAV Antivirus on Ubuntu:
The first step is to install and get the latest signature updates. To do this on Ubuntu, you can open a terminal and insert "sudo apt-get install clamav" and press enter.
$ sudo apt install clamav
You may also build ClamAV from sources to benefit from better scanning performance.
To update the signatures, you type "sudo freshclam" on a terminal session and press enter.
$ sudo freshclam
Now we are ready to scan our system.
To do this, you can use the "clamscan" command.
This is a rich command that can work with many different parameters so you'd better insert "clamscan –-help" on the terminal first and see the various things that what you can do with it:
$ clamscan –-help
To Update ClamAV Signature Database:
1. Stop the ClamAV process:
$ systemctl stop clamav-freshclam
2. Manually update the ClamAV signature database:
3. Restart the service to update the database in the background:
$ systemctl start clamav-freshclam