In Mac OS,You may want to view hidden files or file extensions,for file management or troubleshooting。Here's how to show or hide these in Mac OS:
Show or hide hidden files
1. Use shortcut keys
•打开“访达”(Finder)。
•按下 Command + Shift + .(period) key。
•This will toggle showing or hiding hidden files。If hidden files show,You can hide it by pressing the same shortcut key。
2. 通过终端命令
•打开“终端”(Terminal),You can click on the magnifying glass icon on the desktop,Type "terminal" and press Enter to find。
•Enter the following command and press enter:
defaults write com.apple.finder AppleShowAllFiles -bool true
•然后输入:
killall Finder
这将重启“访达”并显示所有隐藏文件。
If you want to hide these files,Enter again:
defaults write com.apple.finder AppleShowAllFiles -bool false
killall Finder
显示或隐藏文件扩展名
1. 通过访达设置
•打开“访达”(Finder)。
•In the menu bar,Click Finder and select Preferences。
•In the Preferences window,Select the Advanced tab。
• Check "Show all filename extensions" to display file extensions。
•If you want to hide file extensions,Uncheck this option。
2. 通过文件信息面板
•在“访达”中,Select a file。
•Right click on the file,选择“显示简介”或按 Command + I。
•In the Info panel,Expand the "Names and Extensions" section,You can manually adjust the display of extensions。
with these settings,您可以根据需要方便地管理文件和文件扩展名。

Comments (0)