我们以系统文件夹Library为例 首先打开终端
打开一个文件夹 :open ~/Library
取消隐藏文件夹:chflags nohidden ~/Library
设置隐藏文件夹:chflags hidden ~/Library
隐藏所有设置隐藏属性的文件夹:defaults write com.apple.finder AppleShowAllFiles -bool false
显示所有文件夹:defaults write com.apple.finder AppleShowAllFiles -bool true
打开一个文件夹 :open ~/Library
取消隐藏文件夹:chflags nohidden ~/Library
设置隐藏文件夹:chflags hidden ~/Library
隐藏所有设置隐藏属性的文件夹:defaults write com.apple.finder AppleShowAllFiles -bool false
显示所有文件夹:defaults write com.apple.finder AppleShowAllFiles -bool true
本文详细介绍了如何在终端中通过命令行指令来操作系统文件夹的隐藏与显示状态,包括如何打开特定文件夹、取消隐藏、设置隐藏以及全局隐藏与显示设置。
2142

被折叠的 条评论
为什么被折叠?



