Mac的defaults命令

April 23, 2012

有的时候我们通过使用一些终端命令来对Mac OS X系统进行设置,比如在Finder标题栏显示完整路径,可以使用

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
killall Finder

改变截屏图片的保存位置

defaults write com.apple.screencapture location 存放位置
killall SystemUIServer

显示Mac隐藏文件

defaults write com.apple.finder AppleShowAllFiles True

或者自己设置键值,读取

defaults write www.whispering.co Author leslie

defaults read www.whispering.co Author
#=> leslie

Comments