Text lookup: grep egrep fgrep
File Search: Locate
Non-real-time, fuzzy matching, lookup is based on the system-wide file database
Fast speed
Find
Realtime
Accurate
Support for many search criteria
Traverse all files in the specified directory to complete lookup, slow
Find Find Path Lookup criteria finds a later processing action
Find path: Default to current directory
Lookup criteria: Default to all files under the specified path
Handling actions: Default to show
Matching Criteria:
1.-name ' filename ': Search by file name
Support File name wildcard
-iname ' filename ': file name matching is case insensitive
2.-user Username: Based on owner Lookup
-group groupname: Search by genus Group
-uid UID: Search by UID
-gid GID: Search by GID
-nouser: Finding files that are not owned by the master
-nogroup: Finding files that are not owned by a group
3.-type
F: Normal file
D
B
L
P
S
4.-size: Search by File size
NK: Precisely NK
[+|-] NK: Greater than or less than NK
NM:
NG:
5. Group number conditions:
-A: With
-O: Or
-not: Non-
6. Search by Time
-mtime: The time of the change
-ctime: Time of Creation
-atime: Time to visit
7.-perm: Search by permissions
Action:
-printe: Display
-ls: Displays the details of each file in a form similar to Ls-l
-ok command {} \; Each step requires confirmation
-exec command {} \; no confirmation required
This article is from the "ngames" blog, make sure to keep this source http://ngames.blog.51cto.com/3187187/1545938
Linux View commands