Skip to content
Advertisement

Ignore case when trying to match file names using find command in Linux

Right now, all I know to use is:

find / -name string.*

that is case sensitive and it won’t find files named:

1string.x
STRing.x
string1.x

How can I search so that all the above would be returned in the search to a case-insensitive matching?

Advertisement

Answer

Or you could use find / | grep -i string

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement