How to reveal hidden files in macOS (and hide visible ones)

Secrets lurk on your Mac drives—most of them are files and folders that are hidden in normal Finder views because they’re related to low-level system…