Hiding Folders 7


Hiding Folders


A while ago I mentioned about a method of hiding folders by making a folder into a dot folder. Dot folders are by default hidden on a Mac, since they are usually represented by being system files and folders. Making the directories and then moving files and folders is a bit difficult and long winded. Especially if you have a folder with hundreds of files inside of it. This method is going to use the actual method used by your system. It involved changing the folder and file flags.

If you open up Terminal and change directory to the folder you want to hide resides in. Then type the following:

chflags hidden ./folder

That will hide the folder and it will be gone from Finder. You wont be able to see it. If you want to get it back you can use the following.

chflags nohidden ./folder

The folder will then return to its normal state. I think this method is a lot simpler than chaning it into a dot folder. As well as this it will also retain any aliases and other features such as histories and Time Machine backups intact.

If you want to open the hidden folder. Type in Terminal again

open ./folder

The folder will then open in Finder. Alternatively you can use the Go To Folder command in Finder to achieve the same thing.

If you want to keep up with the latests post from Mac Tricks And Tips I recommend you subscribe to the RSS Feed.

Where To Next?

  • Subscribe To Mac Tricks And Tips