#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.