Comments on How to scan for viruses with ClamAV on Ubuntu 24.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 on 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.
22 Comment(s)
Comments
clamscan -help
clamscan: illegal option -- e
ERROR: Unknown option passed
ERROR: Can't parse command line options
Use "--help" and not "-help":
clamscan --help
Nice artikel. Please do realize that Clamav does not scan compressed files like .zip.
You can use avg for linux, use avgscan -a.
Just created a bash to save and run every so often, this takes a while to run.
#!/bin/bash
#clam antivirus scan for linux takes a while to run
sudo apt-get install clamav -y
sudo freshclam
clamscan -r –remove /
exit 0
Thanks very much!
its actually
clamscan -r --bell -i /path/to/directoryits --bell not -bell
Ha. I came to the comments to say the same thing.
Thanks for sharing this, just what I was looking for
Instead of a manual scan, how can i set up clam av to scan a certain folder everyday?
Create a cronjob that runs the clamscan command daily.
My Linux boxes have been running slow for about a year, so I tried clamav. After installing, I entered a command
line to scan, which I found on the google list of solutions (not a web site):
clamav -r --bell -i / I go about 150 lines of:
LibClamAV Warning: fmap_readpage: pread fail: asked for4095 bytes @ offset 1, got 0
The 4095 and 1 varied. The got 0 was consistant. I am running xubuntu 18.04 LTS
with a hang at the end, no exit. Help?
Your the man BIll Thanks for sharing your hard work.
Known viruses: 6762421Engine version: 0.100.2 Scanned directories: 1 Scanned files: 20 Infected files: 0 Data scanned: 0.84 MB Data read: 0.73 MB (ratio 1.16:1)Time: 23.440 sec (0 m 23 s)
Can you please tell me how to remove viruses? Terminal command for linux
Kanhaiya, read the --help again :)
Use "clamscan --remove --move=/home/<user>/viruses, but be careful, the removal might cause problems, especially if it was a false positive, so run it without the --remove first.
this is great!!
I get this:
dell@newlife:~$ sudo apt-get install clamav
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package clamav
dell@newlife:~$ sudo freshclam
sudo: freshclam: command not found
I too am having this problem. I get the same error when running 'sudo apt-get install clamav'.
Why do the writers of this type of software not give one the option of scheduling a scan say 10 or 15 minutes after booting up? Instead one has to select a time, and in my case my PC is not on all the time as I boot it up at odd intervals during the day and switch it off when I have finished doing my business. I therefore cannot say at precisely what time the PC will be active.
Hi so I ran the full scan and it found three viruses, but it didn't remove them. So what do I do now? Do I have to manually remove them? I thought clamwin would automatically send the viruses to qourantine then delete them, right? here is the results:
----------- SCAN SUMMARY -----------
Known viruses: 8924011
Engine version: 0.102.4
Scanned directories: 151991
Scanned files: 855244
Infected files: 3
Total errors: 121196
Not removed: 3
Data scanned: 42162.97 MB
Data read: 69491.77 MB (ratio 0.61:1)
Time: 12472.445 sec (207 m 52 s)
jaeiboo@Jaeiboo-X220T:~$
Can someone help me with this?
thanks, I'm a nooob to Linux, but I'm going in fulltime all the way fully converted to linux.
P,s, I heart Linux
is there a way to stop it while scanning?
just close the terminal window
Thank you for this great program. Run it all the way.
Can we save the scan results in a map?
Just a linux novice.
warm greetings from the heart,
Silvester