Cmd + Shift + . (dot)
defaults write com.apple.Finder AppleShowAllFiles false
#Change 'false' by 'true' to show hidden files
killall Finder
#1 - Open your Macintosh HD folder
#2 - Press Command + Shift + . (period)
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles true
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
>> To show hidden files, hold down: Cmd + Shift + . (dot)
>> Hold down Cmd + Shift + . (dot) a second time to hide the files again.
Toggle hidden files on macOS: Command + Shift + .
#Open Terminal by typing “Terminal” in Mac's search bar. Alternatively, you can find it by clicking on Go in the menu bar, selecting “Applications,” scrolling down to “Utilities,” expanding the folder, and clicking on “Terminal.”
#Type Below code and press “Enter.”
$ defaults write com.apple.Finder AppleShowAllFiles true
#Type below code and press “Enter” again.
$ killall Finder
#Once you run the script, the hidden files should show up in Finder. When you're done, tuck away the files again by following these steps:
#Type Below code For Hide and press “Enter.”
$ defaults write com.apple.Finder AppleShowAllFiles true
#Type below code and press “Enter” again.
$ killall Finder
#Once you run the script, the hidden files should show up in Finder. When you're done, tuck away the files again by following these steps:
#You can also use Terminal to hide your specific files from prying eyes. To obscure something from view on your Mac, follow these steps:
#Open Terminal.
Type in “chflags hidden.”
Drag the files you want to hide into the Terminal window.
Press “Enter” to hide the files.
Command + Shift + . (full stop/period)