How to show the hidden files in Mac

The Macintosh HD window shows bin and other hidden files, after using the steps in this guide for How to show the hidden files in Mac
(Image credit: Apple)

Apple doesn't make it easy to figure out how to show the hidden files in Mac computers. In fact, making these files visible all the time requires poking around in the bowels of your Mac — in the Terminal.

Fortunately, we've got all the details you need for this, one of the power user tricks for how to use macOS. And we're not even going to ask what you're doing poking around inside the hidden directories of your computer. Though to be honest, we'll note that poking around in hidden files may be more trouble than it's worth if you're not a power user. 

Apple gets criticized for making it hard to tinker with Macs, but we get it for showing hidden files. Deleting the wrong one could send your system into a world of hurt. But for those who have learned that something in their Library directory, or another hidden nook or cranny in their Mac, we've got the details you need to know.

Here's what you need to learn for how to show hidden files on a Mac (This article has been updated to reflect macOS Ventura, aka macOS 13).

How to show the hidden files in Mac computers

The system Library, which contains a lot of files that you may want to erase when trouble-shooting an app, isn't entirely visible when you go poking around. 

The Macintosh HD window shows bin and other hidden files, after using the steps in this guide for How to show the hidden files in Mac

(Image credit: Apple)
  • Open Finder
  • Navigate to your storage root directory (likely Macintosh HD)
  • Click Shift + Command + .

How to show the hidden Library files in Mac computers

There's also the user directory Library, which is hidden by default. You can either open it quickly by holding Option when opening Go from the Finder menu bar or use the above keyboard shortcut to make it visible.

The "Go" menu is open in macOS finder to Library, looking for the hidden files in a Mac on macOS

(Image credit: Apple)

How to show the hidden files in Macs all the time

  1. Open Terminal (either via Applications > Utilities or hit Command + Space and type "Terminal")
  2. Enter the following lines of code, one at a time, hitting return afterwards:

how to show the hidden files in mac - in terminal

(Image credit: Apple)

defaults write com.apple.Finder AppleShowAllFiles true

Killall Finder

You may need to add '-boolean' in front of true.

To reverse this, follow those two steps again, but change "true" in line 1 to "false".

How to show the hidden files in Mac apps

There's one more place where Macs hide files: inside of programs. Again, this is not for fun, but for getting things done.

The Applications window shows the right-click menu above Photo Booth, with a green box around "Show Package Contents," which is how you show the invisible files of an app in macOS.

(Image credit: Apple)
  1. Right-click an application
  2. Select Show Contents 

So, now you've got everything you need to know to find the files that Apple doesn't think everyone needs to see easily. Remember, though: you don't view all files with the intent to clear up space. Those hidden files are hidden for a reason, and many are important to your system — ensuring it runs properly in the background.

If you'd like to read more macOS tutorials, we have you well and truly covered. Learn how to find the Home folder on Mac and add it to Finder, so you can easily get to your Home directory. Find out how to open Terminal on Mac, so you can become a power user. Want to capture the screen? You'll need to know how to screenshot on a Mac and how to record screen on a Mac. Application frozen? Make sure you know how to force quit on Mac.

TOPICS
Henry T. Casey
Managing Editor (Entertainment, Streaming)

Henry is a managing editor at Tom’s Guide covering streaming media, laptops and all things Apple, reviewing devices and services for the past seven years. Prior to joining Tom's Guide, he reviewed software and hardware for TechRadar Pro, and interviewed artists for Patek Philippe International Magazine. He's also covered the wild world of professional wrestling for Cageside Seats, interviewing athletes and other industry veterans.

Read more
MacBook Pro M3 Pro on bench
Your Mac has a built-in screen recorder — here's how to use it
MacBook Pro 16-inch 2021 sitting on a patio table
You can speed up your Mac by clearing its cache — here's how
MacBook Air 13-inch M3
Apple reveals how to prevent your MacBook powering on when you open the lid — here's what to do
AirDrop settings on an iPhone with a MacBook in the background.
How to transfer files from an iPhone to Mac — every method explained
MacBook Pro M3 Pro on bench
Stop using Command+Shift+3 — try these Mac screenshot shortcuts instead
MacBook Pro 2023
You can customize your Mac mouse pointer — here's how
Latest in Computing
Surface Laptop 7 from the front
Amazon just gave Surface Laptop 7 a 'frequently returned' label — here's what's going on
23andME box
23andMe has declared bankruptcy — here's how to delete your data now
Russian flag with padlock smashing through glass
47 VPNs could be axed from Google Play Store following Russian demands
nvidia rtx 50 series
RTX 5060 Ti release date just tipped for April 16 — HP seemingly confirms Nvidia's next-gen GPUs
Ray-Ban Meta Smart Glasses
Samsung’s 'Haean' smart glasses will reportedly launch this year — here's everything to expect
An angled view of the distraction-free desk setup I built around the Oakywood Standing Desk Pro
I built a completely distraction-free desk setup with these 10 gadgets — and now I’m truly locked in
Latest in How To
An image of an iPhone screen showing the Safari app icon in the center
I got tired of Safari revealing my web searches in iOS 18.4 — this setting fixes that
Gmail logo on iPhone
I used Google Gemini to declutter my Gmail account — here's how you can do it too
AirPods Pro 2 in hand
Your earbuds are disgusting — here's the right way to clean them
ChatGPT logo on a smartphone screen being held outside
7 biggest ChatGPT mistakes — and how to fix them
a photo of a woman looking at her fitness tracker
Forget the treadmill — I boosted my metabolism and walked 2,000 steps with this 15-minute workout
a photo of a woman out for a walk
Forget running — I did this one thing to boost the calorie burn on my daily walks