How to locate a file in Linux with find

Need to find a file on your system? Look no further than the excellent find command line tool.

Here’s how to use it:

This brings up a list of every file whose name matches “yourfilename.extention”. Wildcards are allowed, so you could list every .log file on the system like this:

The forward-slash just after find command lets you specify where to start your search. So forward-slash (i.e. ‘/’) means you’re looking everywhere. You can specify a directory like this:

Find is a complex command – have a look at what else it has to offer:

About Jay Versluis

Jay is a medical miracle known as Super Survivor. He runs several YouTube channels and websites, and he's also live on Twitch sometimes. To support him on his mission to make the world a better place, you can support him on Patreon or buy him a coffee.

Add your voice!