Hidden files exist on your Mac but stay out of sight by default
Your Mac hides certain files and folders to protect system files from accidental deletion and to reduce clutter in Finder windows. These hidden files are still there — they just don't show up when you browse your computer normally. You can reveal them using a keyboard shortcut, a menu option, or a terminal command, depending on which method fits your workflow.
The most common reason to unhide files is to access configuration files, dotfiles (files that start with a period), or system preferences that programs store in hidden locations. Once you know how to reveal them, you can see everything on your Mac.
Key Takeaways
- Press Command + Shift + Period (.) to instantly show and hide all hidden files in any Finder window on your Mac.
- Hidden files typically start with a period and include system configuration files, cache folders, and application settings that you usually don't need to touch.
- The keyboard shortcut works immediately and applies to all open Finder windows, so you can toggle hidden files on and off as needed.
- If the keyboard shortcut doesn't work, you can use the Finder menu or Terminal to reveal hidden files, though the shortcut is fastest for most people.
Use the keyboard shortcut to show hidden files instantly
The fastest way to reveal hidden files is to press Command + Shift + Period (the period key, not a different punctuation mark). This works in any Finder window on your Mac, whether you're browsing your home folder, Desktop, or any other location.
When you press this combination, all hidden files and folders appear immediately alongside your regular files. Press the same keys again to hide them. This toggle works in real time — you don't need to close and reopen Finder, and the change applies to all open Finder windows at once.
If this shortcut doesn't work on your Mac, check that you're pressing the correct keys. The period key is on the right side of your keyboard, next to the comma. Make sure Caps Lock is off, and that you're holding Command and Shift while pressing the period.
Show hidden files through the Finder menu
If the keyboard shortcut doesn't work or you prefer using menus, you can reveal hidden files through Finder itself. Open Finder and click the Finder menu in the top-left corner of your screen, next to the Apple logo.
Look for an option called Show Hidden Files or View (depending on your macOS version). Click it, and all hidden files appear in your current Finder window. To hide them again, return to the same menu and click the option a second time.
This method works the same way as the keyboard shortcut but takes more steps. Most people find the keyboard shortcut faster once they remember it.
Reveal hidden files using Terminal
Terminal is the command-line tool built into macOS. If you're comfortable typing commands, you can use Terminal to show hidden files permanently or temporarily. Open Terminal (search for it in Spotlight by pressing Command + Space, then type "Terminal").
Type this command and press Enter: defaults write com.apple.finder AppleShowAllFiles true
Then type: killall Finder and press Enter. This restarts Finder and makes hidden files visible from that point forward. To hide them again later, type the same first command but replace "true" with "false", then restart Finder the same way.
This method is permanent until you reverse it, unlike the keyboard shortcut which toggles on and off. Use Terminal only if you plan to keep hidden files visible for a while, or if the keyboard shortcut isn't working on your Mac.
Understand what hidden files actually are
On Mac, a file is hidden if its name starts with a period (.). For example, .bash_profile, .DS_Store, and .ssh are all hidden files. The period at the beginning tells macOS to hide the file from normal view. This is different from making a file private or password-protected — it's simply a naming convention that macOS respects.
Hidden files are usually system files, configuration files, or application settings that you don't need to see or change during normal use. Your home folder contains many hidden files and folders, including .config (application settings), .cache (temporary data), and .ssh (security keys). Deleting or editing these files by accident can break applications or system functions, which is why macOS hides them by default.
When you show hidden files, you see everything on your Mac, but you don't have to touch anything. Most people reveal hidden files only when they need to access a specific configuration file or troubleshoot a problem.
Find hidden files in specific locations
If you're looking for hidden files in a particular folder, navigate to that folder in Finder first, then press Command + Shift + Period to reveal hidden files in just that window. This is useful if you want to see hidden files in your Downloads folder, Desktop, or a project folder without showing hidden files everywhere on your Mac.
You can also search for hidden files using Finder's search function. Click the search icon in the top-right corner of any Finder window, type the filename you're looking for, and Finder will find it whether it's hidden or not. This is faster than toggling hidden files on and off if you're searching for one specific file.
If you know the exact path to a hidden file, you can also use the "Go to Folder" option in Finder. Press Command + Shift + G, type the full path (for example, ~/.ssh), and press Enter. Finder will open that folder directly, even if it's hidden.
Avoid accidentally deleting or editing hidden files
Once you reveal hidden files, remember that they're hidden for a reason. System files and configuration files control how your Mac and your applications work. Deleting or editing them without knowing what they do can cause problems.
If you're looking for a hidden file to fix a specific problem, make sure you know exactly which file you need before you delete or change it. If you're not sure what a file does, leave it alone. You can always hide the files again by pressing Command + Shift + Period a second time.
If you do accidentally delete a hidden file and your Mac or an application stops working correctly, you may be able to restore it from a Time Machine backup. Connect your backup drive, open Time Machine, and navigate to the date before you deleted the file.
Frequently Asked Questions
Why does my Mac hide files in the first place?
macOS hides system files and configuration files to prevent accidental deletion or modification. These files control how your Mac and applications work, so hiding them reduces the chance you'll break something by mistake. You can reveal them whenever you need to, but most people never have to.
Will showing hidden files slow down my Mac?
No. Revealing hidden files doesn't affect your Mac's performance. Finder simply displays more files in the window, but it doesn't change how your computer runs. You can toggle hidden files on and off as often as you want without any impact on speed.
Can I hide files I create myself?
Yes. To hide a file you created, rename it to start with a period. For example, rename "myfile.txt" to ".myfile.txt" and it will become hidden. Rename it again without the period to unhide it. This works for any file, not just system files.
What if the keyboard shortcut doesn't work on my Mac?
Try using the Finder menu instead: click Finder in the menu bar, then look for Show Hidden Files. If that doesn't appear, your macOS version may use a different menu path — try the View menu instead. You can also use Terminal with the defaults command to reveal hidden files permanently.
Is it safe to look at hidden files?
Yes, it's safe to look at hidden files. Just don't delete or edit them unless you know exactly what they do and why you need to change them. Viewing a file doesn't harm anything — only deleting or modifying it can cause problems.