Find File command
Article Directory
learning target
- You can speak commands used to find files
1. find and use the command options
command | Explanation |
---|---|
find | In the specified directory to find the file (including directory) |
find command options:
Options | Explanation |
---|---|
-name | Find the file name (including directory name) word |
find renderings commands and options:
2. find command together with a wildcard
Wildcard:
It is a special statement, mainly with an asterisk (*) and question mark (?), Fuzzy search for files
Wildcards | Explanation |
---|---|
* | It represents 0 or more of any character |
? | Represent any one character |
* Wildcard renderings:
? Wildcard renderings:
Extended:
Wildcards can be combined not only find command, you can also use in combination with other commands, such as: LS, mv, cp , etc. It should be noted that only the find command using a wildcard requires quotation marks.
Extended renderings:
3. Summary
- find command to find the file operation is completed
- Find File command format: find the specified search directory -name "filename"