PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

I Found My Mac's Secret Files. Here's How to Find Yours

Messing around with certain macOS files could brick your Mac computer, so Apple has made them hard to find. But if you're confident in your skills, here's how to access them safely.

 & Jason Cohen Senior Editor, Help & How To

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS
(Credit: Stokkete / Shutterstock)

Your computer has backend directories, libraries, and files that help keep the operating system running smoothly. If you delete or move any of these files, something could go seriously wrong, so I don't recommend playing with them unless you know what you're doing.

Windows users can find these files in File Explorer, where it's easy to make changes and mistakes. In order to prevent Mac users from doing the same, Apple hides many of these files by default in macOS. That means you don't have to worry about ruining your computer, but it makes things a bit harder when you do need access.

I found a way to quickly view these hidden files in Finder, through you can also use the Terminal app. Just remember that there are few reasons to mess around with these files—like relocating program directories or troubleshooting drivers—and if you're looking to clear up some hard drive space, there are other ways of accomplishing that.


View Hidden Files in Finder

In Finder, I selected my drive under Locations, then opened the Macintosh HD folder. All I had to do was press Command + Shift + . (period) to make the hidden files appear. The same can be done from inside the Documents, Applications, and Desktop folders.

You'll notice that anything the computer doesn't want you messing with will be grayed out, but you can still take a peek inside. When finished, I advise you to hit Command + Shift + . (period) once more to make the folders invisible again and ensure you don't accidentally change something later.

You can also quickly access the ~/Library folder from Finder's top menu. Click Go to see all the shortcuts for accessing the different folders inside your drive. However, if you hold down the Option key, there will be a new Library option with no shortcut visible. Click Library to view the content of the ~/Library folder.

(Credit: PCMag/Apple)

View Hidden Files in Terminal

Another way of performing this task is by using the macOS Terminal app, which gives you text-based access to the computer's operating system. Find Terminal under Launchpad > Other > Terminal, then run the following commands.

Type defaults write com.apple.Finder AppleShowAllFiles true and press Enter. Type killall Finder and press Enter. Once both lines of code run, you should see your hidden files in Finder and any temporary files saved on the desktop.

When you want to hide these files again, replace the value true with false. So that would be defaults write com.apple.Finder AppleShowAllFiles false, then press Enter. Then type killall Finder and press Enter.

This might seem less helpful than going through Finder, but Terminal can also help you hide individual files and folders on your computer. This would be most useful if you have password-protected files or just want to prevent anyone who uses your Mac from messing around with your stuff. To do this, open Terminal and chflags hidden [Press Space], then drag the file you wish to hide into the Terminal window to display its path. Press Enter to hide the file from view.

Of course, anyone can find these files using the methods listed above, so this isn't a real substitution for file encryption or any other legitimate security measures.

(Credit: PCMag/Apple)

About Our Expert

Jason Cohen

Jason Cohen

Senior Editor, Help & How To

My Experience

As PCMag's editor of how to content, I have to cover a wide variety of topics and also make our stories accessible to everyday users. Considering my history as a technical writer, copywriter, and all-around freelancer covering baseball, comics, and more at various outlets, I am used to making myself into an expert.

I believe tech corporations are bad, but you might as well know how to use technology in everyday life. Want more how to content delivered right to your inbox? Sign up for the tips and tricks newsletter that I curate twice a week.

The Technology I Use

My job as how-to guru means I use just about every gadget under the sun, so I can figure out how everything works. I work from a Lenovo ThinkPad running Windows 11, but also have a very large Dell Inspiron 17 3000 and Apple silicon MacBook. I also have a Google Pixel 6a for personal use and use a Galaxy Z Flip 4 for additional Samsung-related testing. For iOS coverage, an iPhone 13 mini works like a charm, though it's already becoming a little long in the tooth.

My desktop situation includes a dual monitor setup with a modest Acer monitor. I also use a Logitech mouse (who can use these ThinkPad trackpads) and a Havit keyboard (my first mechanical keyboard; I love it but my wife hates it!). I'm a recent convert from wired headphones; I have Anker Soundcore Liberty Air wireless earbuds for personal use and have taken to the Sennheiser HD 450BT headphones for work.

Whenever I have a second to myself, I'm probably gaming on my Nintendo Switch, Steam Deck, or Xbox Series S. I also still have a bunch of classic consoles lying around as well.

  • Breaking down complicated and confusing processes into simplified instructions
  • Finding new tech problems to solve
  • OS-level tips and tricks

Read full bio