Find command in CentOS -- find the file name
1. Find the file named "elm. cc" in a directory
Find/home/lijiajia/-name elm. cc
2. Find a file with a certain character (such as "elm") in the file name
Find/home/lijiajia/-name '* elm *'
Find/home/lijiajia/-name 'elm *'
Find/home/lijiajia/-name '* elm'
3. Search by file features
Find/home/lijiajia/-amin-10# Search for files accessed in the last 10 minutes in the system
Find/home/lijiajia/-atime-2# Search for files accessed in the last 48 hours in the system
Find/home/lijiajia/-empty# Search for files or folders that are empty in the system
Find/home/lijiajia/-group cat# Find the groupcat file in the system (tried, the command is incorrect .)
Find/home/lijiajia/-mmin-5# Search for the files modified in the last 5 minutes in the system
Find/home/lijiajia/-mtime-1# Search for the files modified in the last 24 hours in the system
Find/home/lijiajia/-nouser# Search for files that belong to the void user in the system (I don't understand what it means)
Find/home/lijiajia/-amin 10# Search for files accessed in the last 10 minutes in the system
Find/home/ftp/pub-user lijiajia# Search for files belonging to the lijiajia user in the system
(PS: the above operations are performed in the/home/lijiajia/folder)
4. Search for files using hybrid search
Find/tmp-size + 0000000c-and-mtime + 2# Search for a file in the/tmp directory that is larger than 10000000 bytes and modified within 48 hours
Find/tmp-user tom-or-user george# Search for files belonging to tom or george in the/tmp directory
Find/tmp! -Usr fred# Find Files that do not belong to fred in the/tmp directory
5. Search for and display files
Find/home/lijiajia/-name 'elm. CC'-ls# Search for files named "elm. cc" in the directory and display the information of these files