Find files with the find command

Find is a very useful commando that is found on most Linux systems – at least all the ones I have worked with. I keep forgetting the syntax for it so I decided to put it here

Find a file with a specific name

find /home -name "filename"

This will search the /home directory and all sub directories for a file called ‘filename‘. If you omit the path find will search in your current directory and all sub directories.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">

This site uses Akismet to reduce spam. Learn how your comment data is processed.