published on in tech
tags: macos linux

Show all files in finder

如何在Mac OS X中开启或关闭显示隐藏文件命令

可以这样:

  1. defaults write com.apple.finder AppleShowAllFiles -bool true - 此命令显示隐藏文件
  2. defaults write com.apple.finder AppleShowAllFiles -bool false - 此命令关闭显示隐藏文件

命令运行之后需要重新加载Finder:快捷键option+command+esc,选中Finder,重新启动即可

或者这样:

  1. defaults write com.apple.finder AppleShowAllFiles FALSE
  2. killall Finder