標籤:
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/
Mac OS finder : 顯示和隱藏檔案[夾] show and hide files or folders