在终端下执行如下命令:
chflags hidden <文件路径> (隐藏)
chflags nohidden <文件路径> (显示)
另外还有:
显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
在终端下执行如下命令:
chflags hidden <文件路径> (隐藏)
chflags nohidden <文件路径> (显示)
另外还有:
显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false