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
•Open the Finder。
•Press 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. via terminal command
•Open 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
•Then enter:
killall Finder
This will restart the Finder and show all hidden files。
If you want to hide these files,Enter again:
defaults write com.apple.finder AppleShowAllFiles -bool false
killall Finder
Show or hide file extensions
1. Set up via Finder
•Open the 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. Via the file information panel
•In the Finder,Select a file。
•Right click on the file,Select Show Profile or press Command + I。
•In the Info panel,Expand the "Names and Extensions" section,You can manually adjust the display of extensions。
with these settings,You can conveniently manage files and file extensions as needed。

