How to search file by name in Linux

For this purpose you can use find command line tool.

Search file by name:

# find -name "query"

Search file by name with ignoring the case sensitivity

# find -iname "query"

Search files which extension is .log

# find / -type f -name "*.log"

Leave a Reply