2018-01-26
Command: Whereis (find the fastest one, but only binary programs, documents, and source code can be found.)
Command format: whereis [options]
-B Find 2 binary programs
-M Find Documents
-S Find source
Command: which (advantage: One of the fastest commands in the Find tool can show the user the path to which the command is located.) Cons: Limited search scope)
Command format: which file name
Command: Find (strongest find tool, common)
Command format: Find path expression (expression to-, ()! The beginning before this is considered to be a path expression that can contain a wildcard character *? [] etc.)
-name Find a file for a name
Example: Find/etc-name passwd
-type Finding file type files of the specified type
| Connection
Catalog D
B-Block Equipment
s socket
P Piping (pipe)
F Regular Files
Example:
Find/-type l-print Find/-type D-print
-size N [C]
Find files of n-value size, default unit is block (1 block = 512 bytes)
Example:
Find files larger than the bytes #find ~-size +1500c
Find files that are equal to 1500k bytes #find ~-size 1500k
Find files less than ten blocks #find ~-size-10
Example of finding files/directories with byte 0 (i.e., empty pieces): #find/-empty
Find all files belonging to snow users
#find/-user Snow
Find files that belong to the snow group
#find/-group Snow
Find files that are not group and are not owned by the owner
#find/-nouser-nogroup
Linux Base Operation Lookup command