Re: Clamdscan recurses

Arnaud Jacques via clamav-users <[email protected]> Mon, 6 Oct 2025 15:50:17 +0200
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <[email protected]>
Hello Sean

Le 06/10/2025 à 15:11, Sean Curran via clamav-users a écrit :
> Newbie Question,
> 
> I use the clamscan util to recursively scan a given filesystem.
> 
> Am I missing  something about how to get clamdscan to recurse... Because 
> I cannot find a setting to get it to recurse even one dir level without 
> hard coding something like /myfs/*/* ... ?
> 
> It ignores the "-r" from clamscan.
> 
> I'd like to scan a multi-TB filesystem periodically and clamscan will 
> take forever, so looking at clamdscan possibly.


clamdscan is recusive by default, so there is no '-r' option like clamscan.

Example :
clamdscan /opt
will scan /opt and all subdirectories.

If you want to get the fastest scan here is the trick :

https://www.securiteinfo.com/clamav-antivirus/faq-clamav-unofficial-signatures_en.shtml
Title "How to perform an antivirus scan as quickly as possible?"


-- 
Cordialement / Best regards,

Arnaud Jacques
Gérant de SecuriteInfo.com

Téléphone : +33-(0)3.60.47.09.81
E-mail : [email protected]
Site web : https://www.securiteinfo.com
Facebook : https://www.facebook.com/pages/SecuriteInfocom/132872523492286
Twitter : @SecuriteInfoCom
Writing signatures for ClamAV antivirus since 2006

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat