一、文件夹操作
1.所有文件夹的隐藏跟显示:
显示:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏:defaults write com.apple.finder AppleShowAllFiles -bool false
2.指定文件夹的隐藏跟显示
chflags hidden ~/路径/文件夹名
3. 隐藏指定文件
chflags hidden ~/路径/文件夹名/文件名(必须加上后缀名)
终端初级教程:http://www.renfei.org/blog/mac-os-x-terminal-101.html