Unhide files on Mac with Terminal commands
Terminal, a Mac command-line interface, is included in macOS by default and allows you to use command prompts to control your Mac instead of following a potentially complex series of instructions to do the same thing in Finder.
If you’re already familiar with using Terminal, then you might prefer to run the following script to reveal your hidden files:
Open Terminal
1. Enter the following: defaults write com.apple.Finder AppleShowAllFiles true [Press Return]
2. Then type killall Finder
3. To hide files again, change the “true” in the step above to “false”