Hiding and unhiding folders in Windows is pretty easy. You get an option in Folder options in Explorer. You don't have any such thing in Mac's Finder and that's why you got resort to Terminal commands for it. Hiding and revealing foldersLike I said, you got to use Terminal for this, so open Terminal.app from Launchpad or search on Spotlight.
This will reveal all hidden folders in your Mac. But you won't see the results yet. You need to restart Finder to see the effect. To restart Finder, enter this command into Terminal.
You'll now be able to see the hidden folders and files, their icons look faded and little different from normal folders/files. To revert back, or hide folders – enter the same command you entered in the beginning, changing TRUE to FALSE, that is:
You need to enter Now how would you remember these commands, the next time you want to see hidden files? There's a workaround for that too. We'll create a file called .bash_profile in the home folder of Mac. .bash_profile contains your preferences, aliases etc.
What we have done a while ago is, create aliases for commands used for hiding and revealing folders. The aliases are So, now if you type Hide existing foldersLet's say you want to create a hidden folder or want to hide a folder you already created – it's pretty easy. All you need to do is rename the folder or file, by putting a dot (.) before it. This works because OS X hides all files/folders whose name starts with a dot. They're called dotfiles. To rename a existing folder in Mac, open Terminal and type In the above command, the first argument should be the original path of file and second argument should the path of renamed file (same name with dot before it). That's all. If you're a developer or someone who messes with this kind of stuff, you must have already knew this. This tutorial was more intended for beginners. -- This Post Easiest way to hide and unhide folders on Mac is Published on Devils Workshop . | |||
| |||
| |||
|
Sunday, 14 April 2013
Easiest way to hide and unhide folders on Mac
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment