文件显示/隐藏
显示文件(默认隐藏)
$ defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏文件(默认隐藏)
$ defaults write com.apple.finder AppleShowAllFiles -bool false
//设置完后执行如下命令生效
$ killall Finder
隐藏某个文件
$ chflags hidden filename
显示某个文件
$ chflags nohidden filename
退出应用
强制退出应用程序选项
Command+Option+Esc
强制退出当前界面激活的应用程序
Command+Option+Shift+Esc
去重复图标
Launchpad恢复出厂设置
defaults write com.apple.dock ResetLaunchPad -bool true
显示文件(默认隐藏)
$ defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏文件(默认隐藏)
$ defaults write com.apple.finder AppleShowAllFiles -bool false
//设置完后执行如下命令生效
$ killall Finder
隐藏某个文件
$ chflags hidden filename
显示某个文件
$ chflags nohidden filename
退出应用
强制退出应用程序选项
Command+Option+Esc
强制退出当前界面激活的应用程序
Command+Option+Shift+Esc
去重复图标
Launchpad恢复出厂设置
defaults write com.apple.dock ResetLaunchPad -bool true
killall Dock