To show hidden files on a Mac, open Finder and press Command-Shift-Period (.). Press the same keys again to hide them; this is the quickest way to reveal items such as configuration files in a folder without changing their visibility permanently.
Show hidden files in Finder
- Open a Finder window and navigate to the folder you want to inspect.
- Press Command-Shift-Period (⌘⇧.). The shortcut toggles hidden items on or off.
- Look for files or folders whose names appear faded. That appearance indicates they are hidden; it does not mean they are damaged or unavailable.
- Press the shortcut again when you want Finder to hide those items from view.
The shortcut applies to Finder windows, so you can move between folders while hidden items are shown. It is a display preference, not a command to make files visible to other users or to change their permissions. If the keystroke does nothing, click a Finder window first and try again.
What makes a file hidden?
macOS commonly treats files as hidden when their names begin with a period, also called a dotfile. Examples include .zshrc and .git. These items often store settings or information used by apps and developer tools, so keeping them out of the ordinary Finder view helps reduce clutter.
Some files are hidden through a filesystem attribute rather than a leading period. macOS also keeps system and application support items in locations that are not obvious in everyday browsing. The Finder shortcut reveals many hidden items in the current view, but it does not make every protected or inaccessible item available, nor does it override permissions.
Hidden is not the same as deleted, encrypted, or locked. A hidden file still occupies space and can still be used by the app or process that owns it. Showing it changes what Finder displays, not the file itself.
Open a hidden folder or library
To go directly to a folder when you know its path, use Finder’s Go to Folder command:
- In Finder, choose Go > Go to Folder from the menu bar, or press Shift-Command-G.
- Type or paste the folder path, then press Return. For example, enter
~/Libraryto open the Library folder inside your home folder.
The tilde (~) represents your home folder. A path beginning with /, such as /Library, refers to a location at the top level of the startup disk instead. Those are different folders: ~/Library contains user-specific data, while /Library generally holds resources shared across users. Some Library contents are essential to apps, so inspect rather than delete unfamiliar items.
Use Terminal to list hidden files
Terminal can show hidden entries in a particular directory without changing Finder’s display. Open Terminal, type ls -la, add a space, and then enter a folder path before pressing Return. For example, ls -la ~/Documents lists the visible and hidden entries in your Documents folder.
The -a option includes names beginning with a period, and -l gives a detailed listing. Terminal is useful for inspecting a specific path or copying an exact filename. Listing items is different from modifying them: commands that delete, move, or change permissions can have lasting effects, so do not run commands you do not understand.
If hidden files still do not appear
- Make Finder active: Click the folder window, then press Command-Shift-Period. A shortcut sent while another app is active may not affect Finder.
- Check the location: The shortcut reveals hidden items in Finder’s view; it does not navigate to a folder whose path you have not opened.
- Try Go to Folder: Use Shift-Command-G with a known path such as
~/Library. Check spelling and punctuation, especially the leading slash or tilde. - Consider access limits: A file may be absent, on an unmounted volume, or unavailable because your account lacks permission. Showing hidden items does not bypass those conditions.
- Look for a different name: A file may not be hidden at all; use Finder search or a Terminal listing if you know the folder where it should be.
A common misconception is that every file beginning with a period is a Mac system file. Dot-prefixed names are used by many tools and apps, and a file’s name alone does not establish whether it is safe to remove. If a folder or file is unfamiliar, leave it in place until you know which app uses it.
Showing files versus changing their visibility
For occasional inspection, the Finder shortcut is the simplest option because it is reversible and does not require a setting change. Terminal’s ls -la is also temporary: it displays a listing in the Terminal window but does not affect Finder.
You may find instructions online for changing Finder’s hidden-file preference through Terminal. Such commands can alter persistent display behavior and may vary in usefulness across macOS releases. They are unnecessary for ordinary viewing; use the built-in keyboard shortcut first. Avoid changing file attributes or permissions just to see an item, since those actions do more than reveal it.
When you finish inspecting a folder, toggle the Finder shortcut off if you prefer the standard view. This does not restore or undo any file changes you may have made separately.
Frequently Asked Questions
What is the keyboard shortcut to show hidden files on a Mac?
In Finder, press Command-Shift-Period (⌘⇧.). Press it again to hide hidden items from Finder’s view.
How do I show hidden files on my Mac desktop?
Click the desktop so Finder is active, then press Command-Shift-Period. Hidden items on the desktop should appear faded; use the shortcut again to hide them.
How do I open the hidden Library folder on a Mac?
In Finder, choose Go > Go to Folder, type ~/Library, and press Return. The tilde points to the Library folder inside your own home folder.
Can I show hidden files using Terminal?
Yes. Run ls -la followed by a folder path, such as ~/Documents, to list hidden and visible entries there. This lists files; it does not change Finder’s view.
Why are hidden files shown in gray?
Finder uses a faded appearance to distinguish hidden items when they are displayed. They are still ordinary files or folders with their existing names and permissions.
Does showing hidden files make them visible to everyone?
No. It changes what Finder displays on your Mac, not who has permission to access the files. The shortcut does not alter sharing settings or file permissions.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Delete Picture Kik? How to Remove Photos
- What Happens to X Replies, DMs, and Followers After Deletion?
- Data Breaches That Shook the World
- Disable Google Assistant: Turn It Off on Android & Home
- Resin vs FDM Printers for Miniatures: Detail, Durability, Cost
- Are Networked Implants Safe? What If One Fails?