In daily operations, we often use rsync as a synchronization artifact. Sometimes when synchronizing two directories, it is required to delete files in the target directory that are more than the source directory, in which case the--delete parameter
1 File Lookup:2 find eligible files on the file system;3 4 File Lookup: Locate, find5 non-real-time lookup (Database Lookup): Locate6 Real-time find: find7 8 Locate:9 dependent on pre-built indexes; The index is built automatically when the system
RM command
Creating files in Linux is easy, and files can become obsolete and useless in the system at any time. Users can delete them with the RM command. The function of this command is to delete one or more files or directories in a directory,
Basic knowledge of file operations:Directory //Operations Directories (folders), static classes. DirectoryInfo//folder of a "class", instance class. Used to describe a folder object that returns a DirectoryInfo array when all directories under the
Find directory: Find/(Look in)-name ' find keyword '-type dFind files: Find/(Look in)-name look up keywords-printIf you need further information, you can refer to the Linux command in detail.Here are some excerpts:find Path-option [-print] [-exec-ok
Find if all files in the directory contain a stringFind. | Xargs Grep-ri "IBM"Finds all files in the directory that contain a string, and prints only the file nameFind. | Xargs Grep-ri "IBM"-l1. Regular expressions(1) Regular expressions are
Ps:find is a powerful command that matches the regular and finds the corresponding permissions, which can help you pinpoint files in any directory anywhere in your system. The following is the most detailed article on the use of the Find command,
Find if all files in the directory contain a stringFind. | Xargs Grep-ri "IBM"Finds all files in the directory that contain a string, and prints only the file nameFind. | Xargs Grep-ri "IBM"-l1. Regular expressions(1) Regular expressions are
Conclusion: zhy2111314 is from linuxsir. org sorting: Summary of North South and North South: This article is a detailed description of the find command, valuable is to give a lot of examples for parameters, a large number of examples, so that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.