The first command changes a hidden setting in Finder’s configuration. The second restarts Finder so the change takes effect.

When working with hidden files on Mac, keep the following tips and precautions in mind:

To hide the files again, simply press the same keyboard shortcut (Command + Shift + .).

To show hidden files on Mac, the most efficient method is the universal keyboard shortcut: . This instantly toggles the visibility of hidden files and folders across your system. Quick Toggle: The Keyboard Shortcut