Find: Difference between revisions

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


<pre>
<pre>
-maxdepth n
find . -maxdepth n
</pre>
</pre>



Revision as of 03:48, 16 December 2016

Internal

Usage

Case Insensitive Search

find . -iname ...

Control Descend Depth

find . -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