Re: Using linux command "find" to get m odified files list for scan

neel roy via clamav-users <[email protected]>
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <1733732516.S.11406.autosave.drafts.1733732836.27850@webmail.rediffmail.com>
Hello Masaru,

I think I am not being able to explain my question. Here is one more try in perhaps little strange approach:

When I run clamscan/clamdscan on entire file system, why doesn&#39;t it use &quot;find&quot; command to get the list of modified files since last time and run scan on them? In which cases, &quot;find&quot; would not work?

Thanks in advance,
-Neel.


From: Masaru Nomiya via clamav-users &lt;[email protected]&gt;
Sent: Mon, 09 Dec 2024 13:35:37
To: [email protected]
Cc: Masaru Nomiya &lt;[email protected]&gt;
Subject: Re: [clamav-users] Using linux command &quot;find&quot; to get modified files list for scan

Hello,

In the Message;

&nbsp;Subject &nbsp; &nbsp;: Re: [clamav-users] Using linux command &quot;find&quot; to get modified files list for scan
&nbsp;Message-ID :&nbsp;&lt;1733723659.S.7812.31692.f4-234-194.1733724123.30454@webmail.rediffmail.com&gt;
&nbsp;Date &amp; Time: 9 Dec 2024 06:02:03 -0000

[NR] == &quot;neel roy&quot; &lt;[email protected]&gt; has written:

[...]
MN&gt;&gt; &nbsp;On the other hand, the Linux find command is a powerful tool for
MN&gt;&gt; &nbsp;efficiently searching for files and directories, but it does not
MN&gt;&gt; &nbsp;directly detect file changes.

NR&gt; &nbsp;I am not sure what does this mean. Can you elaborate?

When I say that the find command does not directly detect changes to
files, I mean that it does not have the ability to monitor changes to
the file system in real time.


MN&gt;&gt; &nbsp;Find searches for files based on the specified conditions, so in order
MN&gt;&gt; &nbsp;to detect file changes, it is necessary to accurately specify the
MN&gt;&gt; &nbsp;conditions for the files that have been changed.

NR&gt; &nbsp;Are you referring to command find; or clamav here?

About the file command.

For monitoring file changes in real time, tools such as inotifyand
fswatchmay be useful, aren&#39;t they?

Best Regards.

---
$B(.(,(,(/WD(B &nbsp;Masaru Nomiya &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail-to: nomiya @ lake.dti.ne.jp
$B(-!@!?WD(B
$B(1(,(,(0(B&nbsp;&nbsp;&nbsp;&quot;Microsoft is overhauling its cybersecurity strategy, called the
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Secure Future Initiative, to incorporate key security features
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;into its core set of technology platforms and cloud services. &quot;
&nbsp;&nbsp;&nbsp; &nbsp;
-- Microsoft overhauls cyber strategy to finally embrace security by default --
_______________________________________________

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

_______________________________________________

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.