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.

Comments are closed.