Ubuntu: How to Search for a Folder via the Terminal CodeUnit 11 JAN 2011

Often you know that there exists a specific directory on your system, but you just can’t seem to locate it anywhere. Enter the useful find statement, a generic workhorse that you will most certainly find on almost all *nix distributions!

To locate a specific directory by name, simply run:

sudo find / -name directoryname -type d

This will print out the list of matching directory paths that can be located on the system. Note that the sudo isn’t strictly necessary, but helps if you suspect the folder to be lurking in one of the system protected directories!

Nifty.

Related Posts:

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don't have time for myself any more.