# How to show hidden files on a Mac

Canonical page: https://leversmac.com/show-hidden-files-mac

> Show hidden files in Finder on a Mac with Shift-Command-Period or a Terminal command, open the Library folder, and hide them all again.

[Atta 🐬](https://x.com/attacomsian)

Maker of Levers

Updated November 17, 2026

Quick answer

Open a Finder window and press **Shift-Command-Period**. The files and folders Finder keeps hidden, such as the ones whose names start with a dot, appear dimmed. Press the same keys again to hide them. To show them in every window from now on, use the [Terminal command](#how-to-show-hidden-files-with-terminal).

[Levers](#levers) shows them in every Finder window with one click, and hides them again with the next.

## How to show hidden files in Finder

1. Click the Finder icon in the Dock to open a Finder window.

2. Go to the folder you want to look in. To type its path, choose Go › Go to Folder, or press Shift-Command-G.

3. Press **Shift-Command-Period**. Hidden files and folders appear, a little dimmed so you can tell them apart.

4. When you’re done, press **Shift-Command-Period** again to hide them.

Most hidden files are settings and caches that macOS and your apps rely on. Looking and copying is fine; think twice before you move or delete one.

macOS hides two kinds of items from Finder: files and folders whose names start with a dot, such as .zshrc or .git, and folders marked as hidden, such as the Library folder in your home folder. Nothing is wrong with them; they’re kept out of the way so they aren’t moved or deleted by accident. The shortcut shows them for a quick look, the Terminal command keeps them shown, and the Library folder has its own ways in.

## Ways to show hidden files on a Mac

| Way                           | Where                             | Shows every hidden file           | No Terminal needed |
| ----------------------------- | --------------------------------- | --------------------------------- | ------------------ |
| Shift-Command-Period          | A Finder window                   | Yes                               | Yes                |
| The AppleShowAllFiles command | Terminal, then Finder restarts    | Yes                               | No                 |
| Go menu, holding Option       | Finder’s Go menu                  | Only the Library folder           | Yes                |
| Show Library Folder           | View Options for your home folder | Only the Library folder           | Yes                |
| Listing a folder in Terminal  | Terminal                          | Listed in Terminal, not in Finder | No                 |
| Levers                        | The menu bar                      | Yes                               | Yes                |

Yes Partly No

## How to show hidden files with Terminal

Finder has a setting for it, **AppleShowAllFiles**, with no checkbox in Finder Settings. Open Terminal from the Utilities folder in Applications and run these two commands. The first turns the setting on; the second restarts Finder so it reads it. Hidden files then show in every Finder window until you turn the setting off.

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

## How to hide hidden files again

If you used the shortcut, press **Shift-Command-Period** again in a Finder window. If you used Terminal, remove the setting and restart Finder:

```
defaults delete com.apple.finder AppleShowAllFiles
killall Finder
```

## How to show the Library folder on a Mac

Your Library folder holds your apps’ settings, caches and support files, and it’s the hidden folder people look for most. There are three ways in, none of which needs the shortcut:

- In Finder, open the **Go** menu, then press and hold Option. **Library** appears in the menu; choose it.
- Choose Go › Go to Folder, type ~/Library and press Return. The tilde stands for your home folder.
- To keep it in view, open your home folder, choose View › Show View Options, and select **Show Library Folder**.

## Why can’t I see a hidden file?

The shortcut works in the Finder window in front, so click a Finder window first: pressed in another app, it goes to that app instead. If the folder still looks the same, it may have no hidden files in it.

To check without changing Finder, open Terminal and list the folder you’re in with the command below. It shows every file, dot files included: anything listed there and not in Finder is hidden.

```
ls -a
```

## Or switch it with one click in Levers

We make Levers.

Levers sits in your menu bar. Its Show Hidden Files switch turns on the same AppleShowAllFiles setting as the Terminal command and restarts Finder, so hidden files show in every window. Click it again and the setting is removed, and Finder hides them as before.

- Hidden files in every Finder window, without Terminal
- Off again with the same click
- Next to Show File Extensions, Path Bar and the other Finder switches

Good to know

- Finder restarts each time you flip it. For a quick look in one folder, Shift-Command-Period is quicker.
- Needs macOS 15 Sequoia or later.
- One payment, no subscription, with a 14-day refund.

[See all switches](https://leversmac.com/features/switches)

## Questions people ask

### How do I show hidden files on a Mac?

Open a Finder window and press Shift-Command-Period. Hidden files and folders appear dimmed. Press the same keys again to hide them.

### How do I always show hidden files in Finder?

Turn on Finder’s AppleShowAllFiles setting in Terminal, then restart Finder. Hidden files then show in every Finder window until you remove the setting and restart Finder again.

### How do I find the Library folder on my Mac?

In Finder, open the Go menu and hold Option: Library appears in the menu. Or choose Go › Go to Folder and type ~/Library.

### Is it safe to show hidden files?

Showing them is safe: nothing changes but what Finder draws. Moving or deleting them is what can cause trouble, since apps and macOS keep their settings and caches there.

### Why do some files on my Mac start with a dot?

A name that starts with a dot is how macOS and other Unix systems mark a file as hidden. Apps and developer tools use them for settings, such as .zshrc for Terminal or .git for a code project.

### Is there an app that shows hidden files on a Mac?

Yes. Levers has a Show Hidden Files switch in your menu bar: one click shows hidden files in every Finder window, and the next hides them again, without Terminal. It costs from $6.99, paid once.

## More guides

- [Show file extensions](https://leversmac.com/show-file-extensions-mac)
- [Path bar and status bar](https://leversmac.com/finder-path-bar-status-bar-mac)
- [Restart Finder](https://leversmac.com/restart-finder-mac)
- [Eject all disks](https://leversmac.com/eject-all-disks-mac)
- [All guides](https://leversmac.com/guides)
