Why Mac hides files and how to see them
macOS hides certain files by default to keep your system folder clean and prevent accidental deletion of files your computer needs to run. These hidden files include system configuration files, cache folders, and files that start with a dot (.) in their name. You cannot see them in Finder the normal way, but they are still there — you just need to tell Finder to show them.
The most common reason to look for hidden files is to find configuration files for programs you use, access your Library folder to troubleshoot an app, or locate dotfiles if you work with code or terminal commands. Once you know how to reveal them, you can navigate to them just like any other folder.
Key Takeaways
- Hidden files on Mac start with a dot (.) and are invisible in Finder until you turn on the "Show Hidden Files" setting.
- The fastest way to reveal hidden files is to press Command + Shift + Period while a Finder window is open.
- You can also enable hidden files permanently through System Settings so they stay visible every time you open Finder.
- Your Library folder, which contains program settings and caches, is hidden by default and requires the same method to view.
- Once hidden files are visible, you can move, delete, or edit them like any other file — but be careful with system files you do not recognize.
Show hidden files using the keyboard shortcut
The quickest way to reveal hidden files is to use a keyboard shortcut while Finder is open. Open Finder and navigate to any folder, then press Command + Shift + Period (the period key, not the full stop on the numeric keypad). Hidden files will appear when ready, usually shown in a lighter gray color to distinguish them from regular files.
Press the same shortcut again to hide them. This method works in any Finder window and is the fastest way to toggle hidden files on and off without changing your system settings. If you only need to see hidden files once or twice, this is the approach most people use.
Enable hidden files permanently in System Settings
If you want hidden files to stay visible every time you open Finder, you can change the setting in System Settings. Open System Settings, then click Finder in the sidebar (on the left). Scroll down until you see the option labeled Show hidden files and toggle it on. From that point forward, hidden files will be visible in all Finder windows.
To turn them off again, return to the same location and toggle the setting off. This method is useful if you work with hidden files regularly and do not want to use the keyboard shortcut every time. The setting applies to your entire Mac, so hidden files will appear in every folder you open.
Find your Library folder
Your Library folder contains settings, caches, and support files for nearly every program on your Mac. It is hidden by default because most people do not need to access it. To find it, open Finder and click Go in the menu bar at the top, then select Library. This takes you directly to your user Library folder without needing to show hidden files first.
Inside Library you will see folders like process Support (where programs store their settings), Caches (temporary files programs create), and Preferences (where individual program preferences are saved). If a program is misbehaving, you may need to delete its folder in process Support or Caches to reset it. Always note the exact folder name before you delete anything, so you can restore it if needed.
Search for hidden files by name
If you know the name of the hidden file you are looking for, you can search for it without making all hidden files visible. Open Finder and press Command + F to open the search box. Type the filename or part of it — for example, ".bashrc" or ".ssh" — and Finder will locate it even though it is hidden.
This method is useful when you want to find one specific hidden file without cluttering your view with dozens of system files. Once the search results appear, you can click on the file to see its location in the folder structure, or right-click it to open the folder it lives in.
Understand what you are looking at
Hidden files serve a purpose, and deleting the wrong one can cause problems. Files that start with a dot (like .DS_Store, .bashrc, or .gitignore) are almost always configuration or system files. Folders like .cache, .config, and .local store program data. If you do not recognize a hidden file or folder, do not delete it unless you are certain what it does.
If you are troubleshooting a specific program, look for a folder in Library > process Support with the program's name. That folder is safe to delete if the program is misbehaving — it will recreate itself the next time the program runs. For anything else, take a moment to search online for the filename before you remove it. A few seconds of research prevents hours of frustration.
Hide files again when you are done
Once you have found what you need, you can hide the files again to keep your Finder windows clean. If you used the keyboard shortcut, press Command + Shift + Period again. If you changed the setting in System Settings, go back to Finder settings and toggle Show hidden files off.
Hiding files does not delete them or change them in any way — it just removes them from view. You can show and hide them as many times as you need without affecting anything on your Mac.
Frequently Asked Questions
What is the difference between hidden files and files in the Trash?
Hidden files are still active and in use by your Mac — they are just invisible in Finder. Files in the Trash are marked for deletion but still exist until you empty the Trash. Hidden files are necessary for your system to work; files in the Trash are not.
Can I accidentally break my Mac by deleting a hidden file?
Yes, if you delete a system file your Mac needs to run. That is why hidden files are hidden in the first place. Stick to deleting hidden files inside a specific program's folder in Library > process Support, and avoid anything in the root-level hidden folders like .system or files you do not recognize.
Why does my Mac show a .DS_Store file in every folder?
.DS_Store is a hidden file macOS creates automatically in every folder to store view settings like icon size and window position. It is harmless and will recreate itself, so there is no point in deleting it. You can ignore it safely.
Do I need to show hidden files to use my Mac normally?
No. Hidden files are hidden because most people never need to see them. You only need to reveal them if you are troubleshooting a program, working with code, or looking for a specific configuration file. For everyday use, leave them hidden.
Will showing hidden files slow down my Mac?
No. Showing hidden files does not affect performance — it only changes what Finder displays. Your Mac runs the same whether hidden files are visible or not.