Linux search file command

find command

-name or -iname: The difference between -name and -iname is case-sensitive and the other is case-insensitive;


ex: Search for a file or directory named init in the /etc directory.
find /etc -name init (precise search, the name must be init to search)


find /etc -iname init (precise search, the name must be init or it can be searched with capital letters)


find /etc -name *init (fuzzy search, file or directory name ending with init)

find /etc -name init??? (fuzzy search,? means a single character, that is, init___ is searched)

Guess you like

Origin blog.csdn.net/bitcser/article/details/106281230