Thousands of files on your Mac are not made visible by default. These files and folders contain user and system data that Apple doesn’t make easily available to prevent you from accidentally making changes or altogether removing them from your computer.
Nonetheless, from time to time you will find accessing some of this data useful. Plus, the forbidden fruit tastes the sweetest. Kidding aside, here are a couple of useful techniques that will help you get a hold of hidden files when you need them.
How to Display Hidden Files Without Third-Party Apps
Mac hides access to hundreds of folders, and unless you already know the directory to a specific folder, you will have to display them all.
Use Keyboard Shortcut
Fortunately for those of you running macOS Sierra or later, Apple has added a Finder keyboard shortcut that makes viewing hidden files a fair bit easier:
- Open Finder
- Go to your Main Drive (Macintosh HD by default)
- Press and hold Shift+command(⌘)+.(dot)
- You will see hidden folders become visible
- Hold down Shift+command(⌘)+.(dot) to revert it back and hide the folders again
Run Terminal Commands
If you happen to run an older version of macOS that does not support the use of the keyboard shortcut, worry not! Here is what you got to do:
- Hit command(⌘)+spacebar to bring up Spotlight Search and lookup Terminal
- Paste the following commands: defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder (the line consists of 2 commands. The first one reveals hidden files in Finder, while the second one reboots Finder for changes to take place.)
- To prevent files from showing up in normal list again, use this command: defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
Note: If the files don’t appear then you must be running OS X 10.8 and earlier. Use the following command instead: defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder (Change TRUE to FALSE and paste the command again to hide the files)
Take note of files and folders locations which you plan on using in the future.
How to Find Hidden Files on Mac
Once you figure out which of the hidden folders you plan on using regularly, there is no need to constantly hide and reveal them all in Finder. Instead, to view any of them (lets take /var/folders/ folder for example), you can follow these steps:
- Open Finder
- Press Shift+command(⌘)+G to bring up Go to Folder window
- Paste the hidden directory e.g. /private/var/folders and hit Go
Maintain Quick Access to ~/Library folder
Let’s face it, out of all the hidden files and folders on your Mac, the ~/Library folder is the one you’re likely to need access to the most. After all, this is the folder where your application support files and other user data are stored. To quickly access the user Library folder:
- Open Finder
- In the Menu Bar click Go
- Hold Option/Alt key for Library to appear on the list
Alternatively, after running the Terminal command or using Shift+command(⌘)+.(dot) to reveal hidden files, locate the Library folder within your User folder. Hold command(⌘)+option and drag Library folder to desktop to create a quick access alias.
How to Delete Hidden Files on Mac
With hidden files revealed, you will immediately notice, that there are hundreds upon hundreds of normally invisible files scattered all over your system. And while you may feel tempted to make your Mac cleaner, you have to be vary cautious of your actions.
It shouldn’t come as a surprise, that Apple have decided to keep these files hidden for a reason. This reason being that most of the hidden files play a role in keeping macOS running properly. Take .DS_Store file for example that you can find in pretty much every other folder. While it may seem redundant at first glance, this file contains information about the current folder — folder icon, location of the window, etc.
Point being, it’s unadvised to tinker with any of the hidden data on your Mac unless you know exactly what you are coming after.
To conclude, Mac keeps a fair number of files and data away from you, and does so for a reason. Hidden files can be accessed by taking a few additional steps which vary depending on the macOS version you’re running. Restrain from making any changes to these files unless you know the ropes. When working with system data, be sure to back it up.
Install to remove multiple trash files with MacFly Pro free trial.
Billed once every 6 months
Don`t waste money on single-purpose apps if there`s multi-functional MacFly Pro!
Pay just $13.95 a month and get all-in-one solution for your Mac
or buy annual subscription and save almost 55%.
Requires MacOS 10.10 (Yosemite) or later