The Only Antivirus I Trust On Linux - And It's Free To Use

Trending 2 weeks ago
Linux kernel developers are getting to grips pinch AI
Elyse Betters Picaro / ZDNET

ZDNET cardinal takeaways

  • Linux doesn't usually require antivirus.
  • If you stock files, you should see utilizing one.
  • For scanning files and directories, ClamAV is your champion bet.

I've said galore times complete nan years that Linux does not request antivirus software. That, of course, assumes you compute successful a bubble. If you hap to stock files pinch others, that's different communicative altogether. Sharing files pinch Windows users without vetting them could onshore those different users successful problem -- of a malicious kind.

Imagine that you've unwittingly downloaded a record from immoderate acheronian spot connected nan web. You don't cheque it for malicious code, but you nonstop it connected to 50 users anyway. Some of those 50 users past nonstop nan aforesaid record connected to others, which could upwind up a immense web of trouble. Had you scanned that record earlier sending it, you mightiness person known it contained malicious codification and would person deleted it immediately.

Also: Thinking astir switching to Linux? 10 things you request to know

If your operating strategy is Linux, what would you usage for scanning that file? Your champion action is ClamAV.

What is ClamAV

ClamAV is an open-source antivirus instrumentality for detecting Trojans, viruses, and different types of malware. ClamAV is simply a toolkit for email scanning, web scanning, and endpoint security. You'll find versions of ClamAV for Linux, MacOS, and Windows, arsenic good arsenic some command-line and GUI options.

While ClamAV is very versatile and useful, nan 1 caveat for this information instrumentality is that it does not characteristic real-time scanning. Instead, ClamAV is each astir on-demand scanning, which intends you usage it manually (whether from nan bid statement aliases nan GUI). That's not to opportunity ClamAV doesn't do real-time scanning, because it does. 

With nan thief of clamonacc, ClamAV enjoys "on-access" antivirus scanning, which is handled by intercepting record entree events and past submitting those events to nan clamd daemon for analysis. The clamonacc constituent useful arsenic portion of nan ClamAV suite to supply real-time malware protection for Linux systems by scanning files arsenic they are created, accessed, aliases modified. Like pinch immoderate antivirus instrumentality connected Windows, utilizing nan real-time characteristic does devour strategy resources, truthful support that successful mind.

As acold arsenic features are concerned, ClamAV includes:

  • Threat detection: ClamAV detects viruses, worms, Trojans, and different malware.
  • Real-time protection: ClamAV provides on-access scanning done a daemon client.
  • Multi-threaded daemon:  ClamAV includes a scalable and elastic daemon for moving scans.
  • Command-line scanner: ClamAV has a command-line interface for on-demand scanning, arsenic good arsenic a GUI.
  • Automated database updates: ClamAV includes an precocious and automated instrumentality to support microorganism definitions existent utilizing freshclam.

How to instal ClamAV

Let's instal ClamAV connected an Ubuntu-based distribution. It's really easy.

Also: Want to prevention your aged computer? Try these 5 Linux distributions

The first measurement is to unfastened nan terminal app connected your Linux distribution.

Show more

Next, rumor nan pursuing bid to instal ClamAV:

Show more

sudo apt-get instal clamav clamav-daemon -y

If you want to instal a GUI for ClamAV, rumor nan command:

sudo apt-get instal clamtk -y

Updating signatures and moving nan daemon

The adjacent measurement is to update nan ClamAV signatures. Before you do, extremity nan freshclam work with:

sudo systemctl extremity clamav-freshclam

You tin now update nan signatures by issuing nan pursuing command:

sudo freshclam

Once nan signatures are updated, restart nan freshclam work with:

sudo systemctl commencement clamav-freshclam

Start nan daemon

You tin now commencement nan daemon pinch nan command:

sudo systemctl commencement clamav-daemon

You tin besides tweak nan daemon configuration record to amended suit your needs. That record is clamd.conf and is recovered successful nan /etc/clamav directory.

Also: 5 reasons why MacOS and Linux spell together for illustration a weapon and fork

Finally, make judge nan daemon starts astatine footwear with:

sudo systemctl alteration clamav-daemon

How to usage ClamAV

I'll show really to scan a record from nan ClamAV bid line. Let's opportunity you downloaded nan record testing.txt and you want to scan it for malicious code. For that, you could tally nan command:

clamscan testing.txt

ClamAV will tally nan scan and study its findings to you. If ClamAV does find malicious codification successful a file, you tin either delete it by clicking Delete aliases quarantine it by clicking Quarantine.

Also: Want to ditch Windows? This Linux distro makes that modulation easy

If you'd for illustration to spell nan GUI route, unfastened nan ClamAV GUI from your desktop window. With nan GUI open, you tin tally a scan connected a record aliases a directory, and moreover group up a scheduler. To tally a elemental scan connected a file, click "Scan a file," find nan record successful mobility pinch your system's record picker, and nan scan will instantly tally and past study its results.

ClamTk.

The ClamTK GUI is very easy to use.

Jack Wallen/ZDNET

If you want to schedule a regularly recurring scan of your location directory, click Scheduler and then, successful nan resulting window, group nan clip for nan scan arsenic good arsenic nan signature updates. After mounting your time, make judge to click nan + fastener to schedule nan regular scan.

ClamTk.

You tin schedule nan scan time, but that aforesaid clip will use to each day.

Jack Wallen/ZDNET

At this point, ClamAV will automatically scan your location directory regular astatine nan scheduled time.

And that is nan basics of utilizing ClamAV. You tin do overmuch much pinch this tool, but if you simply want basal scans, you now cognize really to make them happen.

Also: My 10 favourite Linux distributions of each time, ranked

Get nan morning's apical stories successful your inbox each time pinch our Tech Today newsletter.

More