Skip to content

Instantly share code, notes, and snippets.

@martin-martin
Last active October 25, 2020 13:38
Show Gist options
  • Save martin-martin/033e7bdb3fb92b30d9d493190a2125f3 to your computer and use it in GitHub Desktop.
Save martin-martin/033e7bdb3fb92b30d9d493190a2125f3 to your computer and use it in GitHub Desktop.

If you go to the command line in Mac OS X and enter:

defaults write com.apple.finder AppleShowAllFiles TRUE

All system files that are usually hidden (e.g. all .git folders) will then be shown by default in the Finder. Hide the system files by executing the same command, but set TRUE to FALSE. Finally, enter:

killall Finder

to refresh the Finder.

Mac OS Sierra (and newer versions) have an even easier way to do just this (explained in more detail here): CMD + SHIFT + .

If you press that shortcut in your Finder window, the OS will display all hidden files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment