Find: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


=Usage=
=Usage=
==Case Insensitive Search==
<pre>
find . -iname ...
</pre>
==Control Descend Depth==


<pre>
<pre>
Line 10: Line 18:


Configure find to descend at most n directory levels below the command line arguments.  -maxdepth 0 limits the whole search to the command line arguments.
Configure find to descend at most n directory levels below the command line arguments.  -maxdepth 0 limits the whole search to the command line arguments.
==Time Constraints==
Find all files modified less that 2 days ago
<pre>
find . -mtime -2
</pre>

Revision as of 03:47, 16 December 2016

Internal

Usage

Case Insensitive Search

find . -iname ...

Control Descend Depth

-maxdepth n

Configure find to descend at most n directory levels below the command line arguments. -maxdepth 0 limits the whole search to the command line arguments.

Time Constraints

Find all files modified less that 2 days ago

find . -mtime -2