How to show hidden files on Mac: I used these easy methods

1.4M views
7 min read

The macOS automatically hides some files to protect critical system functions. It can sound tricky, but don't worry; I’ll show you the right method to show hidden files on Mac.  

There are various approaches to viewing hidden files on Mac, such as Terminal commands, Finder shortcuts, and third-party software. Let’s explore my tried and tested options in detail.

Why are some files hidden on a Mac?

Apple hides certain files and folders for good — to keep your system running smoothly and securely. While some users choose to hide files for privacy, others are tucked away by macOS itself to prevent accidental changes or security risks. 

Here are the main reasons:

  • Providing access or messing with hidden files could cause chaos in your system. Think of it like a “Do Not Touch” sign for your Mac’s stability and security.
  • Hackers love easy targets; exposed system files are like an open invitation. Keeping them hidden helps keep your Mac safe.
  • Tech experts sometimes need access to hidden files to troubleshoot issues, but for most users, it’s best to leave them alone. Deleting or messing with them could cause more harm than good!

Now, let’s learn about some of the ways you can hide and unhide files on a Mac.

You might also like the following: “How to move files on Mac.”

How to show hidden files on Mac? 

If you want to see the hidden files you can use both Finder or Terminal. Each method brings you success and you can stick to it for the future reference. Let’s explore both methods in detail.

Method 1: Use Finder to view hidden files

Let me show you my most used method:

  1. Open Finder.
  2. To view hidden files, use the Mac show hidden files shortcut: Command + Shift + Period (.). Hidden files will appear as semi-transparent icons.

keyboard shortcut for hidden files

Method 2: Use Terminal commands to unhide files

For those of you who are more advanced or curious about learning this method, give Terminal a try:

  1. Open Terminal (via Spotlight or Applications > Utilities).
  2. Type the command: defaults write com.apple.finder AppleShowAllFiles -boolean true; killall Finder > Press Return.
  3. To hide files again, replace true with false in the command.

unhide files with terminal command

In case the tool doesn't work, check out how to open Terminal on your Mac.

And of course, how to hide files on a Mac?

Need to hide files on your Mac? macOS gives you multiple ways to do it. You can use Mac’s built-in Finder tools via the powerful Terminal. I’ve listed both of the methods; take your pick according to your needs:

Hide file extension using Finder’s info menu

  1. Go to Finder > Right-click the file or folder.
  2. Choose Get Info from the context menu.
  3. In the Name & Extension section, select the Hide Extension box.

how to hide file extension info menu

This will hide the file extension.

Find files at lightning-fast speed with HoudaSpot

HoudaSpot is a tool for cataloging and searching for files across your system. It combines powerful filtering to find the exact document you want. I used HoudahSpot to locate hidden files across the system without needing to modify settings directly. Also, if you want, you can save your searches as templates for when you look something up a lot.

houdahspot searching for hidden files

Here is how it works:

  1. Install and open the HoudahSpot app.
  2. Use the app search functionality to locate the file or folder you want to search for.
  3. Search by name, type, or any other criteria.
  4. Choose the file from the search results if it is located.


Hide files via Terminal commands

I used the chflags command to hide multiple files at once on the Terminal. Here are the steps that I followed:

  1. Open Terminal.
  2. Type the command: chflags hidden /path/to/file > Press Return.
  3. Replace path/to/file with the file’s actual path you want to hide. Suppose you want to hide a file”hide.txt” located on your desktop, type: chflags hidden ~/Desktop/hide.txt.

hide files using terminal

Show hidden files on Mac the right way

Showing, hiding, and managing hidden files on Mac can be done with several methods, from in-built tools like Finder and Terminal commands to third-party apps or tools. I ran simple commands on the Terminal to show hidden files across the Mac. Moreover, I also used an intuitive way to locate and manage hidden files without modifying system settings using tools like HoudahSpot, One Switch, and ForkLift.

All these apps are available to you on Setapp, a collection of handy and powerful Mac apps. On Setapp, you can find every app that you need to take your Mac to the next level, solving problems even before they arise. Get a 7-day free trial and access to 250+ apps.

FAQ

How to show hidden files on Mac permanently?

To show hidden files permanently on Mac:

  1. Go to Finder > Applications > Utilities > Open Terminal.
  2. Type defaults write com.apple.Finder AppleShowAllFiles true > Press Return.
  3. Also, use the Command + Shift + Period (.) command to display all the hidden files on your Mac.

Moreover, the advanced search utility HoudahSpot also offers solutions for providing access to hidden files on Mac.

How to show hidden files on an external hard drive Mac?

To show hidden files on an external hard drive Mac:

  1. Go to Finder > Applications > Utilities > Open Terminal.
  2. Type defaults write com.apple.Finder AppleShowAllFiles true > Press Return.

It will display hidden files on the external hard drive connected to your Mac.

How to not show hidden files?

To not show hidden files on Mac:

  1. Go to Finder > Applications > Utilities > Open Terminal.
  2. Type defaults write com.apple.Finder AppleShowAllFiles false > Press Return.
  3. Also, use the Command + Shift + Period (.) command to view hidden files.

Can hidden files be deleted?

Yes, hidden files can be deleted on your Mac. Be cautious when deleting hidden files as some might be system-related or might be critical for macOS, making the system function correctly.

250+ apps for all your daily tasks.

Sign up to Setapp and try them for free.

Security-tested