Sharing some useful tips, solutions and notes for Geeks.

Tuesday, September 12, 2017

Locate a file using a part of the name - Linux

Sometimes we might need to locate a file and we doesn't know the full name. So the available option is the check via terminal using some search terms.

       
find . -type f -name "*yourtext*"

This will grep recursively for any matching terms and retrieve the path for us if the provided "yourtext" is found anywhere in the file name.

p.s: its case sensitive

1 comment:

Muthukrishnan said...

Wowwwwwwwwwwwwwwwwwwwwwwwwwwwww