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.

Niklas Tech Blog
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.