-
Find command usage instructions.
Enter the command: find --help to view the instructions for the command.
-
The actual operation of the find command is to find the file with the specified suffix name.
Enter the command: find -name "*.txt" to find the file with the suffix name .txt.
-
The actual operation of the find command is to find the file with the specified suffix name in the specified directory.
Enter the command: find Test2 -name "*.txt", search for a file with a suffix of .txt in the directory Test2.
-
Practical operation of the find command to find files that have been modified in the last 15 days.
Enter the command: find -ctime 15 to find the files that have been modified in the last 15 days.
-
The find command is used to find files with a file size greater than 20M.
Enter the command: find -size +20M to find files with a file size greater than 20M.
-
To summarize the content of this article:
1. Log in to the linux system.
2. Open a terminal command.
3. Instructions for find command usage.
4. The actual operation of the find command is to find the file with the specified suffix name.
5. The actual operation of the find command is to find the file with the specified suffix name in the specified directory.
6. Practical operation of the find command to find files that have been modified in the last 15 days.
7. Practical operation of the find command to find files with a file size greater than 20M.
END
How to find files in Linux (find command
Guess you like
Origin blog.csdn.net/My_SweetXue/article/details/107669799
Recommended
Ranking