To show hidden files and folders on Mac,
- Launch Terminal
- Type the following command then press Enter:
defaults write com.apple.finder AppleShowAllFiles YES
To hide the hidden files again, just type the same command but replace YES with NO as follows
defaults write com.apple.finder AppleShowAllFiles NO
- After typing the appropriate command, look for your Finder icon (most likely on your Dock), then right-mouse click on it while holding the Option/Alt key of your keyboard. This will display a contextual menu from which you click Relaunch, to relaunch the Finder browser with your new visibility settings applied.
Now, if all you are looking for is how to display your Library folder in your user home folder, we have the steps in this short guide.