首先打开“Finder”,然后再打开“终端”。 在终端中输代码defaults write com.apple.finder AppleShowAllFiles -boolean true;killall Finder即可显示隐藏文件。 再次隐藏文件,可以输入命令defaults write com.apple.finder AppleShowAllFiles -boolean false;killall Finder。