显示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
方法二:
首先,转到你要查看隐藏文件的文件夹 接着,Command-F,搜索该文件夹 点击右侧的“+”号,出现搜索控制选项,默认是Kind,点击下拉列表,选择other, 找到File invisible选项,并对右边的方块打勾。 OK了,现在你可以在搜索控制选项中选择文件的File Visibility状态了,点击选项中的invisible即可显示隐藏文件 |