Examples of find common usages in Linux
Find Path-option [-print] [-exec-ok command] {} \;
Parameters for the Find command
The directory path that the Path:find command looks for, for example, to represent the current directory, and/to represent the system root directory.
The-print:find command outputs the matched file to the standard output
The-exec:find command executes the matching file with the shell command given by the parameter, in the form of ' command ' {} \; note {} \; there are spaces between
-ok and-exec are the same, except that the shell command given by this parameter is executed in a more secure mode, and a prompt is given before each command to allow the user to confirm the execution
-name filename Lookup by file name
-perm to find by permissions
-user username Search by user name
-group groupname to find by group
-mtime-n +n by file modification time to find, n n days, +n n days ago
-atime-n +n by file access time to find, n n days, +n n days ago
-ctime-n +n by file creation time, n n days, +n n days ago
-nogroup
-nouser
-newer F1!F2
-type/b/d/c/l/f
-size N[c]
-depth
-fstype
-cpio
A description of the Find command for Linux basic commands