补充:
killall 用来杀死指定名字的进程
defaults 可以对一些系统属性进行read,write,delete操作
下面举几个常用的例子:
1.显示隐藏文件defaults write com.apple.finder AppleShowAllFiles truekillall Finder
2.显示Safari调试菜单
defaults write com.apple.safari IncludeDebugMenu -bool YESkillall Safari
3.隐藏DashBoard
defaults write com.apple.dashboard mcx-disabled -boolean YESkillall Dock
或者,在【系统偏好设置】->【Mission Control】->【DashBoard】选择关闭,即可