-
Command format:
Find [Find Range] [options] [parameters]
-
Command function:
Find a file or directory
-
Command options:
-name Search by name, allow wildcard "*" and "?" to be used
-size Search by size, generally with "+" and "-" set more than or less than the specified size as the search criteria, units are K, M, G
-type Search by type
F Common Files
Catalog D
B-Block device files
C-Character device files
-user According to the file owner lookup, user plus space username
-amin-n Find system last N minutes access to files
-atime-n Find the last n days the system accessed the file
-cmin-n Find system last N minutes change file status file
-ctime-n Find system last N days change file status file
-mmin-n Find system last n minutes files changed file data
-mtime-n Find the last n days of the system changed file data file
-
Common examples:
Example one: Look for a file named pwd under the root
Command: Find/-name "pwd"
Example two: Finding a normal file under the current host
Command: find ~/-type f
Example three: Find a file with permission 777 in the current directory
Command: find.-perm 777
Example four: Find the file under/root for the last 10 minutes of system access
Command: find/root-cmin-10
Example five: Find files larger than 1024kb in/boot
Command: find/boot-size +1024k or find/boot-size +1m
This article is from the "Shiyu" blog, make sure to keep this source http://928004321.blog.51cto.com/10707688/1731319
Linux command--find