# How to Show Hidden Files on Mac

Updated: November 24, 2026

- [Supercharge](https://sindresorhus.com/supercharge.md): Elevate your Mac experience. Price: $20, one-time purchase, plus tax where applicable. Platforms: macOS. Get it from: [Gumroad](https://sindresorhus.gumroad.com/l/supercharge?wanted=true), [Setapp](https://go.setapp.com/stp181?refAppID=742&utm_medium=vendor_program&utm_content=button). Free trial: [download](https://sindresorhus.com/supercharge#trial). Requires macOS 27 or later. Size: 10 MB. Free older versions for macOS 26 and 15: [download](https://sindresorhus.com/supercharge#older-versions). Gumroad rating: 5.0/5 (288 ratings).

URL: https://sindresorhus.com/guides/show-hidden-files-mac

In a Finder window, press Shift+Command+. to show the hidden files, and press it again to hide them. To always show them, turn on “Show hidden files” in the settings of [Supercharge](https://sindresorhus.com/supercharge.md).

Hidden files are files that Finder does not show, like files with a name that starts with a dot, such as `.gitignore` and `.env`.

## With Supercharge

1. Open the settings of [Supercharge](https://sindresorhus.com/supercharge.md), and click “Tweaks”.
1. In the “Finder” section, turn on “Show hidden files”.
1. Finder restarts, and then shows the hidden files in all windows.

To hide them again, turn off the setting.

- To show or hide them only for now, turn on “Toggle Hidden Files” in the “Main Menu” tab of “Tweaks › Context menu items › Configure…”. Then right-click an empty area of a Finder window, and choose “Toggle Hidden Files”. This change goes back when Finder restarts.
- To show or hide them with a keyboard shortcut from any app, use the “Toggle Hidden Files in Finder” action of Supercharge in the Shortcuts app, and give the shortcut a keyboard shortcut.

## Without an app

**Keyboard shortcut:** In a Finder window, press Shift+Command+. (period). Press it again to hide the files. The change is temporary.

**Terminal:** To always show hidden files, run this command in the Terminal app. It changes the setting of Finder, and restarts Finder:

```console
defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder
```

To hide them again, run the same command with `false` instead of `true`.

The keyboard shortcut is enough if you need hidden files sometimes. Use the setting of Supercharge or the command if you often work with them, like with the config files of developer tools.
