Mac OS finder : 显示和隐藏文件[夹] show and hide files or folders

Finder默认是不显示隐藏文件[夹]的,要显示出怎么办?

技术分享

要显示的话,可以GUI(graphic user interface)和CLI(command line interface)两种方式

CLI:

显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true

隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false

为了方便,将命令添加到.bash_profile

show=‘defaults write com.apple.finder AppleShowAllFiles -bool true‘

hide=‘defaults write com.apple.finder AppleShowAllFiles -bool false‘

就像ubuntu种有配置的查看器一样,Mac也当然有的

点击Finder,按下Control(^)+Shift+G,输入/Library/Preferences,找到com.apple.finder.plist文件,用Xcode.app打开,修改。

技术分享

GUI:(OnyX) Parameters->Finder-> Misc. options-> Show hidden files and folders

技术分享

 

 

 

Published at 2015.1.9 Environment:Mac OS Yosemite 10.10.1/2 iMac

Reference:

1. http://www.cnblogs.com/lm3515/archive/2010/12/08/1900271.html

2. http://tynetwork.blog.163.com/blog/static/169130247201073113315474/

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。