MAC OSX 修改文件隐藏

MAC OSX 修改文件隐藏  

2013-01-24 16:05:20|  分类: MAC|字号 订阅

修改Library文件夹的属性

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/


你可能感兴趣的:(Mac)