Hidden files are there by default — you just need to turn them visible

Mac hides certain files and folders to keep your system organized and prevent you from accidentally deleting something critical. These hidden files usually start with a dot (like .DS_Store or .bashrc) and are used by macOS and your applications to store settings, preferences, and system data. You cannot delete or move them through the normal Finder window because they are not shown. The good news is that showing them takes one command, and you can toggle them back to hidden whenever you want.

The fastest way to reveal hidden files is to use a keyboard shortcut in Finder. This works on any recent version of macOS and takes about five seconds. If you prefer a menu-based approach or want a permanent solution, there are other methods that work just as well.

Key Takeaways

  • Press Command + Shift + Period (.) in any Finder window to instantly show or hide all hidden files on your Mac.
  • Hidden files start with a dot and are used by macOS and applications to store settings — they are not meant to be edited by most users.
  • You can also use Terminal to show hidden files permanently, or use a third-party app if you want a graphical toggle button.
  • Once visible, hidden files look and behave like normal files — you can open, move, or delete them, so be careful with system files.

The keyboard shortcut method (fastest)

Open Finder and navigate to any folder or your Desktop. Press and hold Command, then press Shift, then press Period (the . key on your keyboard). You should see hidden files and folders appear instantly in the window. The files will have dimmed or grayed-out icons to show they are hidden by default.

To hide them again, press the same keyboard shortcut a second time: Command + Shift + Period. This toggle works in every Finder window on your Mac, so you can show hidden files in one folder and hide them in another without affecting the rest of your system.

This method is temporary — the next time you restart your Mac or open a new Finder window, hidden files will be hidden again unless you press the shortcut again. If you want hidden files to stay visible all the time, use the Terminal method below.

Using Terminal to show hidden files permanently

Open Terminal (search for it in Spotlight by pressing Command + Space, type "Terminal", and press Enter). Copy and paste this command exactly as written: defaults write com.apple.finder AppleShowAllFiles true

Press Enter. Then type this second command: killall Finder and press Enter again. Finder will close and reopen automatically, and all hidden files will now be visible in every window on your Mac.

If you ever want to hide them again, open Terminal and paste this command: defaults write com.apple.finder AppleShowAllFiles false Then run killall Finder again. This method changes a system setting rather than just toggling the view, so the change persists even after you restart your Mac.

What you will see when hidden files are visible

Hidden files and folders appear with slightly faded icons or a different appearance depending on your macOS version. You will see files like .DS_Store (which stores folder view settings), .git (used by developers), .ssh (contains security keys), and configuration files for applications like .bashrc or .zshrc.

Do not delete or edit these files unless you know exactly what they do. Many of them are critical to how your Mac and your applications work. If you accidentally delete a hidden system file, your Mac may not start properly or an application may stop working. If you are just looking for a specific file you created, hidden files are usually not what you are searching for — use Spotlight (Command + Space) instead.

Finding a specific hidden file by name

If you know the name of the hidden file you are looking for, use Spotlight instead of scrolling through folders. Press Command + Space, type the filename (including the dot if it starts with one), and press Enter. Spotlight will find it even if hidden files are not currently visible in Finder.

You can also use Terminal to search for hidden files. Open Terminal and type: find ~ -name "filename" (replace "filename" with the actual name). This searches your entire home directory and shows you the exact path to the file. This method is faster than scrolling through folders if you are looking for something specific.

Third-party apps for managing hidden files

If you do not want to use Terminal or remember keyboard shortcuts, apps like Finder Extensions or Tot can add a toggle button to Finder for showing hidden files. These are optional — the keyboard shortcut and Terminal methods are built into macOS and do not require installing anything.

Some file managers like Commander One or Double Commander also show hidden files by default and give you more control over how files are organized and displayed. These are useful if you work with hidden files frequently, but for most people the keyboard shortcut is enough.

Frequently Asked Questions

Why does macOS hide these files in the first place?

Hidden files are usually configuration or system files that users do not need to see or edit during normal work. Hiding them reduces clutter in Finder and prevents accidental deletion. Most users never need to access them.

Is it safe to delete a hidden file?

It depends on the file. System files like .DS_Store can usually be deleted without harm — macOS will recreate them. But files in .ssh, .git, or application configuration folders can break things if deleted. When in doubt, do not delete it. If you need to remove a file, search for its name online first to understand what it does.

Will showing hidden files slow down my Mac?

No. Showing or hiding hidden files only changes what you see in Finder — it does not affect how your Mac runs or how much storage space is used.

Can I hide files I create myself?

Yes, but it is not straightforward. You would need to rename the file to start with a dot (like renaming "notes.txt" to ".notes.txt") or use Terminal commands. Most people just use regular folders and files instead.

What if I cannot find a file even with hidden files showing?

Use Spotlight (Command + Space) to search by filename — it searches hidden files automatically. If Spotlight does not find it, the file may have been deleted, or you may be searching in the wrong location. Check your Downloads folder, Desktop, and Documents first.