On this page · 10 sections
- Four ways to show hidden files on a Mac at a glance
- Method 1: Shift-Command-Period in Finder
- Method 2: show hidden files with a Terminal command
- Method 3: go straight to a hidden folder
- How to open the Library folder on a Mac
- What you will see, and what to leave alone
- Hidden files still not showing? Quick fixes
- For IT teams: hidden files on managed Macs
- How eCorpIT can help
- References
Summary. To view hidden files on a Mac, open a Finder window and press Shift-Command-Period (.), then press it again to hide them. Apple's keyboard shortcuts list does not include that shortcut, so if it does nothing, use the methods Apple documents. To keep hidden files visible, set Finder's AppleShowAllFiles preference to TRUE with one Terminal command and restart Finder. To open a single hidden folder without changing anything, choose Go > Go to Folder (Shift-Command-G) and type its path. For your Library folder, hold Option with the Go menu open and choose Library, or select Show Library Folder in your home folder's view options. Most hidden items are files and folders whose names start with a dot, plus system folders Finder keeps out of sight. The steps apply to macOS 27 Golden Gate, at version 27.2.1 (released 9 November 2026) when we checked. Look and copy freely, but delete only what you understand and have backed up.
About this article. For Mac users who need dot files or the Library folder, and for the IT teams that support them. We checked every step, menu path and shortcut on 15 November 2026 against Apple's Mac User Guide and Terminal User Guide for macOS 27, Apple Support articles, Apple's developer documentation and the OpenSSH and Git manuals. Menus can change in later updates, and no vendor paid for inclusion. Researched with AI assistance and reviewed by our editorial team.
Four ways to show hidden files on a Mac at a glance
| Method | What you do | How long it lasts | Best for |
|---|---|---|---|
| Finder shortcut | Press Shift-Command-Period in a Finder window | Until you press it again | A quick look |
| Terminal setting | Set AppleShowAllFiles to TRUE, then restart Finder | Until you set it back to FALSE | Developers who always want dot files |
| Go to Folder | Press Shift-Command-G and type a path such as ~/Library | One folder, one visit | A hidden folder you already know |
| Library from the Go menu | Hold Option with the Go menu open, choose Library | One visit, or always with Show Library Folder | App settings and support files |
Sources for the table: Apple's shortcuts article, developer documentation and Mac User Guide.
Method 1: Shift-Command-Period in Finder
- Click the Finder icon in the Dock so a Finder window is in front.
- Open the folder you want to inspect, for example your home folder (Shift-Command-H).
- Press Shift-Command-Period (.), often written Command-Shift-Period. Hidden files and folders appear.
- Press the same keys again to hide them.
Apple's Mac keyboard shortcuts article (published 14 September 2026) does not list this shortcut, and the macOS 27 Mac User Guide points there for more shortcuts, so treat it as widely shared but undocumented. Shortcuts can also vary with language and keyboard layout. On a keyboard made for Windows PCs, press Ctrl or the Windows logo key where a shortcut uses Command. If nothing happens, click inside the Finder window and try again, then use Method 2 or 3.
Method 2: show hidden files with a Terminal command
Finder's own settings have no hidden-files option. Apple's developer documentation says Finder hides folders most users never need and files whose names begin with a dot, and that the defaults tool can override this with the AppleShowAllFiles preference. That guide dates from 2012. The commands below use com.apple.finder, the domain name in Apple's device management documentation, and the -bool flag described in the defaults manual page on your Mac (man defaults).
- Open Terminal: click the Spotlight icon in the menu bar, type Terminal and click it, or open the Utilities folder inside Applications (Shift-Command-U jumps there).
- Paste these lines, pressing Return after each:
defaults write com.apple.finder AppleShowAllFiles -bool TRUE
killall Finder
- Finder quits and reopens, and every Finder window now shows hidden items.
To go back to the default, run:
defaults write com.apple.finder AppleShowAllFiles -bool FALSE
killall Finder
The killall Finder line only restarts Finder so it reads the new setting; it deletes nothing. Apple's documented alternatives are to log out and back in, or to choose Force Quit from the Apple menu, select Finder and click Relaunch. Our guide to quitting apps on a Mac covers that window. Type the preference name exactly as shown.
List hidden files without changing Finder
A new Terminal window starts in your home folder, which the prompt shows as a tilde (~). The ls command with the -a flag lists every item, dot files included:
ls -a ~
To open a hidden folder in Finder without changing any setting, use the open command, for example open ~/Library.
Method 3: go straight to a hidden folder
You do not have to show hidden files to open a hidden folder. The macOS 27 Mac User Guide describes Go to Folder:
- In Finder, choose Go > Go to Folder, or press Shift-Command-G.
- Start typing the path, for example
~/Library/Application Support/or/usr/bin/. Matching folders appear as you type.
- Press Tab to accept a suggestion, then double-click the folder you want. If you pasted a full path, press Return.
A slash at the start means the top level of your Mac, a slash at the end marks a folder, and a tilde means your home folder. If a tilde is awkward on your keyboard layout, type the full path, such as /Users/yourname/Library, with your account's short name. Apple's guides for macOS Tahoe 26 and Sequoia 15 give the same steps.
How to open the Library folder on a Mac
Your user Library folder (~/Library) holds files apps use for your account, such as settings, caches and support files. Apple has hidden it since macOS 10.7 to keep the Finder simple and says to keep your own files in Documents instead. Apple documents three ways in:
- Option key and the Go menu: click the desktop so Finder is active, open the Go menu, press and hold Option, then choose Library.
- Go to Folder: press Shift-Command-G, type
~/Libraryand open the folder.
- Always show it: choose Go > Home, then View > Show View Options, and select Show Library Folder.
There are three Library folders. ~/Library is yours alone, /Library holds items shared by every account, and /System/Library holds parts of macOS that users cannot change. Most troubleshooting steps mean ~/Library.
Before changing anything in Library, quit the app it belongs to and check your backup. Time Machine keeps hourly backups for the past 24 hours, daily backups for the past month and weekly backups for older months, deleting the oldest when the disk is full. To free space safely, see our guide to deleting temp files on a laptop.
What you will see, and what to leave alone
- .DS_Store: files Finder writes into folders. Apple's network-share guidance shows that Finder reads them when deciding how to sort and display a folder's contents.
- .zprofile and .zshrc: settings for zsh, the default shell since macOS 10.15. The first runs at login, the second for each new Terminal session. Edit with care.
- .ssh: the default folder for your SSH settings and keys, including private keys only you should be able to read. Never share or delete them.
- .git: the folder in a code project that holds its Git repository and history. Deleting it removes that history.
Hidden files still not showing? Quick fixes
- The shortcut does nothing: make Finder the active app, then use the Terminal setting or Go to Folder.
- The Terminal command changed nothing: restart Finder with Relaunch in the Force Quit window or with the
killall Findercommand, or log out and back in.
- Go to Folder or Terminal is unavailable on a work Mac: Apple's device management settings for Finder let an organisation turn Go to Folder off, and IT may restrict Terminal too. Ask your IT team rather than looking for a way round it.
For IT teams: hidden files on managed Macs
- .DS_Store on network shares: Apple's article for administrators says you can stop macOS reading .DS_Store files on SMB shares to speed up browsing with
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE, then log out and back in. FALSE turns sorting back on.
- Decide once, then deploy: Apple's Finder payload can disable Go to Folder, Connect to Server and Eject, but has no key for hidden files. Intune can push a property list for an app's preference domain, but Microsoft notes that only some apps honour managed preferences, so test on a pilot Mac. Our Intune vs Jamf vs Kandji (Iru) comparison covers the main platforms.
- Security:
~/Library/LaunchAgentsholds third-party agents for the logged-in user, while/Library/LaunchAgentsand/Library/LaunchDaemonshold third-party items for every user and the system. Endpoint tools should watch these locations, and help desk scripts should never tell users to empty Library folders wholesale.
- Upgrades: recheck any Finder preference you deploy after each major macOS release. Our macOS 27 Golden Gate IT guide covers the current one.
How eCorpIT can help
eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our digital transformation services team helps organisations set consistent Finder, Terminal and security settings across Mac and Windows fleets. Talk to us at /contact-us/.
Last updated: 15 November 2026.