Linux / Unix: Find Hidden Directories, Files and Folders
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"
No comments:
Post a Comment