Hide folders in Linux (alternate methods)


Linux file system hides files and folders starting with a period ‘.’ by default. If you need to hide any file/folder, simply rename it and add a period at the beginning.

However, there are times when you need an alternate method of hiding files and directories. Follow these steps:

Create a new file named “.hidden” inside the folder containing the file/folder to be hidden. List the files and folders to be hidden in the file; seperate each file / folder name by a new line, like so:

Secret stash of pics
Private files


That was an easy method, right? Tell us any other alternative methods you know in comments.