Show User ~/Library in OS X Lion & Mountain Lion
Launch Terminal from Spotlight or Launchpad -> Utilities, and enter the following command to show or hide the directory:
chflags nohidden ~/Library/
The users Library folder will immediately become visible again. Reverting this back to the standard Lion setting is simple too:
Hide User ~/Library in OS X Lion (default setting)
This returns to the default setting of hiding the user Library directory:
chflags hidden ~/Library
Changes take effect immediately again, and Library becomes invisible to the user.
常用修改方式:
How to Hide Folders in Mac OS X
Hiding existing folders is fairly easy:
- Launch the Terminal, found in /Applications/Utilities/ or from Launchpad
- Type the following command:
chflags hidden /path/to/folder/
- When finished, close out of Terminal
For example, to hide a folder in my home directory named “Secrets” the command would be:
chflags hidden ~/Secrets/
Unhiding the Folder in Mac OS X
If you no longer want the folder to be hidden anymore, here’s what to do:
- As before, launch the Terminal application
- Enter the following command:
chflags nohidden /path/to/folder/
- Close the Terminal
As an example, to unhide a folder on the users desktop named “Secret Folder” the command would be:
chflags nohidden ~/Desktop/Secret Folder/