Find

From TBP Wiki
Revision as of 14:31, 5 January 2019 by Goldbolt (talk | contribs) (Created page with "Find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence, until the outcome...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Find searches the directory tree rooted at each given file name by evaluating the given expression from left to right, according to the rules of precedence, until the outcome is known (the left hand side is false for and operations, true for or), at which point find moves on to the next file name.

Find

Find a file based on filename:

   find /dir/ -name "filename.php"

This lists all files which have been modified per unit of time (showing 30 days here):

    find /dir/ -mtime +30