在開發(fā)過程中經(jīng)常會修改隱藏文件,比如.bash_profile、.gitignore等等,我們可以
用命令 ls -a 查看所有文件(包含隱藏文件),
顯示Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool true
隱藏Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool false
或者
顯示Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles YES
隱藏Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles NO