Unlike Windows, Apple doesn’t make it clear how you can view hidden files on your Mac. Fortunately, there are a few workarounds that can make viewing your hidden files possible.
How to Show Hidden Files and Folders on Mac | Including Library Folder | Quick & Easy Guide
The first method for viewing hidden files is to use the Finder. To do this, open your Mac’s Macintosh HD folder, which you can access by clicking on your Mac’s name under Places in the left-hand tab of a Finder window. Once you’re there, press the following keys: Command + Shift + . (period). This keyboard shortcut should reveal hidden files in the current folder you’re viewing. The hidden files and folders will be grayed out. Press Command + Shift + . (period) again whenever you want to make the folders invisible again.
If you want your hidden files to always be visible, then you need to use a few Terminal commands. First, open Terminal, which you can find in Applications under Utilities. Then, enter the following code commands followed by the Enter key:
defaults write com.apple.Finder AppleShowAllFiles true (then press Enter)