August 1999
Intermediate to advanced
328 pages
8h 58m
English
The find command provides many options for searching for files.
The syntax of the command is
find [pathnames] [conditions]
Conditions may be grouped between escaped parentheses:
/(...conditions...\)
They can also be negated with an exclamation point (!-- in Unix-speak, a bang) and given as alternatives --o. Table A.1 describes some useful conditions.
| Useful find Conditions | |
|---|---|
| Condition | Description |
| -atime +n | -n | n | Find files that were accessed more than n (+n), less than n (-n), or n days ago |
| -ctime +n | -n | n | Find files that were changed more than n (+n), less than n (-n), or n days ago |
| -group group | Find files belonging to the specified group name or ID number |
| -mount | Find files that are mounted on the same file system as pathnames |
| -name pattern ... | |
Read now
Unlock full access