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:

  • http://www.manpagez.com/man/1/find/
  • http://www.codecoffee.com/tipsforlinux/articles/21.html

Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.

Add your voice!