≡ Menu

Linux / Unix: Find Hidden Directories, Files and Folders

I‘m a new Unix user and trying to find the hidden directory called .movies but I do not know where it is on the file system. How do I find a hidden folder or directories under Unix like operating systems?

You can use the find command to locate files. The syntax is:

find /path/to/search -name "folder"
find /path/to/search -name "dir1"
find /path/to/search -name ".dir2"
find /path/to/search -name "filename.txt"
find /path/to/search -name "dir*"

Open the command prompt (bash shell). To search the hidden folder called .movies in your own home directory, enter:

find $HOME -name ".movies"

Or

find ~ -name ".movies"

To search the entire hard disk, enter:

su - 
find / -name ".movies"

OR use sudo directly

sudo find / -name ".movies"

To match case insensitive directories name i.e. find .movies, .Movies, .MOVES and so on, enter:

sudo find / -iname ".movies"
Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 1 comment… add one }
  • Orv October 24, 2012, 3:07 am

    For those systems that support it (most), the ‘locate’ command is very fast, since it uses a hashed database of locations which is updated nightly.

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , , , ,