Find command:
Find Lookup command;
command format: Find (find file range) Parameters
Parameters:
No1:-name indicates the name of the lookup
Find/root-name "Mess"
No2:-print the Find results standard output for Find
Find/root-name "Mess"-print >list all/root files under mess output to list
NO3:-exec Executes the result of the find lookup to the given command
Find/root-name "Mess"-exec mv {} info \;
The NO4:-OK function is similar to exec, but alerts you to actions when you execute a command
Find/root-name "Info"-ok mv {} a \; You will be prompted to change your name when renaming
No5:-perm Follow the Find file
Find/root-perm 644 Find all files in/root with permission 644
No6:-size Lookup Unit is block by file size: 512 bytes (default) C: Bytes Cha
Find/root-size +1000000c to find files larger than 1M
Find/root-size-10 finding files that are less than 10 blocks
Find/root-size +10-size-20 Looking for a file between 10 blocks and 20 blocks
NO7:-type Search by file type
File Type: B: Block file (hard drive) C: String file (keyboard) d: Catalog P: Pipe file L: Connection file S: Interface file D:door (Solaris)
Find/root-type F-name "Mess"
NO8:-mtime Find files changed in a few days use,-expressed within a few days, + represents a few days away
Find/root-mtine +1-mtime-3
No9:-newer find files between two files in a time
Find/root-newer A! -newer-c search for a newer than a, older file than C
Where a file is set up early and C files are established late
This article is from the "Phoebe can be" blog, please be sure to keep this source http://nanmukeyi.blog.51cto.com/9672215/1697110
Linux Command two: Find command