Ubuntu – One-word command to search for a file

command linefind

I know there's a command to search for a file anywhere. It's a quite simple, 1 word command. Sadly, I forgot what it is.

So, let's say I want to search for a file name testingthis. The file could be anywhere in the system. How would I do it?

Best Answer

You can use locate

locate testingthis

or find

find / -name testingthis

For locate the system has to build a database of files. If the database is not built it will not find anything. Also if you add new files they will not be found until the database is updated again. You can updated the database with updatedb.

Related Question