blog icon indicating copy to clipboard operation
blog copied to clipboard

Mac系统如何显示隐藏文件

Open realDuYuanChao opened this issue 3 years ago • 0 comments

Mac系统如何显示隐藏文件

如何把文件进行隐藏

  • 方法一: 重命名

如何显示/隐藏隐藏的文件

  • 方法一: 快捷键

    command + shift + .
    
  • 方法二: 设置终端

    defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder # 默认显示所有文件
    defaults write com.apple.finder AppleShowAllFiles -boolean false; killall Finder # 默认不显示所有文件
    
    alias show='defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder' # 修改配置文件
    alias hide='defaults write com.apple.finder AppleShowAllFiles -boolean false; killall Finder'
    

realDuYuanChao avatar Jan 04 '22 07:01 realDuYuanChao