Hidden folders are there by default — you just need to show them
macOS hides certain folders by default to keep your system organized and prevent accidental changes to critical files. These hidden folders still exist on your Mac; you simply cannot see them in Finder until you turn on visibility. The fastest way is a keyboard shortcut that toggles hidden files on and off instantly. If you prefer a permanent change, you can adjust Finder settings so hidden folders always appear.
Hidden folders typically start with a period (.) in their name — like .ssh, .config, or .bash_profile. Your Mac uses these to store system preferences, application settings, and user configuration files. You might need to access one of these folders to troubleshoot software, recover settings, or manage development tools.
Key Takeaways
- Press Command + Shift + Period (.) to instantly show or hide all hidden files and folders in Finder.
- Hidden folders on Mac start with a period and contain system settings, application data, and configuration files you normally do not need to touch.
- You can make hidden files permanently visible through Finder Preferences under the Advanced tab.
- The Library folder in your home directory is hidden by default but contains important application support files and preferences.
Use the keyboard shortcut to toggle hidden files on and off
The quickest method is a keyboard shortcut that works in any Finder window. Press Command + Shift + Period (the period key, also called a full stop). Hidden files and folders will immediately appear in your current Finder window, displayed slightly faded or grayed out to distinguish them from regular files.
Press the same shortcut again to hide them. This toggle works instantly and affects only the active Finder window — other open windows keep their previous setting until you use the shortcut there too. This method is useful if you only need to see hidden files temporarily, such as checking a single configuration file and then hiding them again.
Make hidden files always visible in Finder Preferences
If you want hidden folders to stay visible every time you open Finder, you can change the default setting. Open Finder, then click Finder in the menu bar at the top of your screen. Select Settings (or Preferences on older macOS versions). Click the Advanced tab.
Check the box next to Show all filename extensions and Show hidden files and folders. Close the Settings window. From now on, hidden files will appear in every Finder window by default. You can reverse this at any time by unchecking the same box.
Find the hidden Library folder in your home directory
One of the most commonly needed hidden folders is your personal Library folder, which stores application preferences, caches, and support files. This folder is in your home directory but hidden by default. You can navigate to it directly without making all hidden files visible.
Open Finder and click Go in the menu bar. Select Go to Folder. Type ~/Library and press Enter. The tilde (~) represents your home directory, so this command takes you straight to your Library folder. You can now browse application-specific folders like Application Support, Preferences, or Caches without toggling visibility for your entire system.
Access hidden folders through the Terminal if Finder does not work
If you need to work with hidden files but prefer not to use Finder, the Terminal app gives you direct access. Open Terminal (found in Applications > Utilities). Type ls -la to list all files and folders in your current location, including hidden ones. The -a flag shows hidden files; the -l flag displays details like size and modification date.
Navigate to a specific folder by typing cd followed by the folder path. For example, cd ~/Library/Application\ Support takes you to the Application Support folder inside Library. Terminal shows hidden files by default, so you see everything without needing to toggle any settings. This method is useful if you are comfortable typing commands or need to perform batch operations on multiple hidden files.
Understand what hidden folders contain and when you might need them
Hidden folders store data your Mac and your applications need to function, but that you do not typically interact with directly. The .ssh folder holds secure shell keys for remote server access. The .config folder stores settings for command-line tools. The Library folder contains caches that speed up app launches, preferences that remember your settings, and support files that applications depend on.
You might need to access these folders to clear application cache if a program is misbehaving, restore backed-up preferences, manage SSH keys for development work, or troubleshoot configuration issues. Most of the time, you can leave them hidden — they are hidden precisely because changing them accidentally can cause problems. Only open and modify hidden files if you are following specific troubleshooting steps or have a clear reason to do so.
Frequently Asked Questions
Why does macOS hide these folders in the first place?
Hidden folders contain system and application configuration files that most users never need to change. Hiding them reduces clutter in Finder and prevents accidental deletion or modification of critical files that could break your system or applications. The period prefix is a Unix convention that predates macOS.
Is it safe to delete files in hidden folders?
No. Deleting files from hidden folders can break applications or system functions. Only delete hidden files if you are following specific instructions from an application developer or support document. When in doubt, do not delete — instead, move the file to your Desktop as a backup before removing it.
Can I hide my own files by adding a period to the filename?
Yes. Any file or folder you rename to start with a period will be hidden by default. For example, renaming "MyNotes" to ".MyNotes" hides it. This works the same way as system hidden files, though it is not a security feature — anyone who knows the name or toggles hidden file visibility can still see it.
What is the difference between hidden files and encrypted files?
Hidden files are simply not displayed in Finder by default, but anyone with access to your Mac can view them by toggling visibility. Encrypted files are scrambled and require a password or key to read. Hidden files offer organization, not security. If you need to protect sensitive information, use encryption instead.
Do I need to show hidden files to back up my Mac?
No. Backup tools like Time Machine automatically back up hidden files and folders without you needing to make them visible. Your backups include everything on your Mac, whether hidden or not. You only need to show hidden files if you want to manually browse or modify them.