Step-by-step guide
- Open Macintosh HD or the folder where you want to display the hidden files in the Finder.
- Hold down the Command, Shift and Period keys: cmd + shift + [.]
- The hidden files and folders on your Mac will then appear partially transparent.
- You can hide the files again using the same keyboard shortcut.
source: https://www.ionos.com/digitalguide/server/configuration/showing-hidden-files-on-a-mac/