Hiding Folders On Your Mac 22

Terminal

Share
Hiding Folders On Your Mac

Hey

Quite a while ago I mentioned a method of password protecting your folders to keep your “work” safe from prying eyes. Although this was a good way to keep stuff safe, people could still see it. This method is to hide folders so that they don’t appear in Finder. They will appear if you have set your computer to view hidden files, but most people don’t have that option.

To make a folder hidden is really simple. There are two ways. Terminal and a normal way. The normal way is to add a dot (.) in front of the folder. This makes it hidden a warning may appear about the change.

The better and more fun way is to use Terminal. Simply open up terminal and type the following:

mkdir /Path/To/Folder/You/Want/To/Hide/.folder

This folder will be instantly created. No warnings. Remember the dot. Its very crucial. You can then view the hidden folder by opening up Finder. Pressing Command + Shift + G or going to Go > Go To Folder. A normal Finder will appear in which you can access your documents.

If you want to delete this folder. In Terminal type:

rm -rf /Path/To/Folder/You/Want/To/Hide/.folder

The folder will then be deleted. It wont be sent to the trash.

Finally if you want to rename you porn work folder so it becomes unhidden. Simply type:

mv /Old/Path/.test /Old/Path/test

The mv command is the move and rename command. The first section is your source the second section is your destination. You can move and rename in one fell swoop with the mv command.

Hopefully you have got to grips with hiding folders, plus some other tips along the way. If you have anything else to share, please leave a comment.

If you want to take your skills with Terminal a bit further I recommend you check out the Terminal Category on this site. If you fancy reading a book there is a couple on Amazon that I regularly see mentioned and recommend, O’reilly Unix Geeks and Unix Under the Hood both are designed for Mac OS X and take Terminal further.


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