在macos系统上我们可以利用最简单的方法来显示隐藏文件或不显示隐藏文件,这种方法就是终端命令。
(学习视频分享:编程视频)
显示隐藏文件(注意空格和大小写):
defaults write com.apple.finder appleshowallfiles -bool true
或
defaults write com.apple.finder appleshowallfiles yes
不显示隐藏文件:
defaults write com.apple.finder appleshowallfiles -bool false
或
defaults write com.apple.finder appleshowallfiles no
输入完成后,单击enter键,然后直接退出终端,重新启动finder即可。
重启finder:首先强制退出finder,再重新启动finder即可。
相关推荐:macos系统
以上就是macos系统显示隐藏文件或不显示隐藏文件的方法是什么的详细内容。