"Where did that file go?" "I want to find it, but I don't know where it's saved..." Have you ever had an experience like that?
Mac comes standard with a "hidden file (invisible file)" feature to prevent important files from being accidentally deleted. By default, files that start with a ". (dot)" (e.g., .htaccess, etc.) are automatically hidden.
If you need to find hidden files for web development or when deleting files, please refer to this article. Here, we will introduce how to display, search for, or delete invisible files on a Mac.
How to show hidden files on Mac
Next, we will introduce two ways to show hidden files on a Mac. We will also explain how to search for and delete hidden files, as well as the steps to display specific folders.
If you just want to check them quickly, please take a look at the check guide below first. If necessary, click on the relevant section in the table of contents to jump directly to the item you want to know about.
Summary of how to operate hidden files on Mac
If you want to display them temporarily right now:Shortcut Command (⌘) + Shift (⇧) + . (period)
If you want to always display hidden files:Change settings in Terminal
If you only want to display the Library folder:Menu bar settings feature
If you want to search for specific hidden files:Terminal commands
If you want to safely delete hidden files:Mac-specific cleaners like BuhoCleaner, etc.
Please choose the method that best suits your needs.
Show hidden files on Mac with a shortcutThe easiest way to show hidden files on a Mac is by using a shortcut in Finder.
Step 1: Open Finder on your Mac.
Step 2: Access any folder and press Command (⌘) + Shift (⇧) + . (period) on your keyboard at the same time.
Then, hidden files on your Mac will instantly appear as translucent icons. Press the same keys again, and the files will become invisible once more. This is recommended when you want to check files quickly.
Many of the hidden files on a Mac are system files essential for system operation. Please refrain from deleting them.
How to show hidden files on Mac using TerminalNext, we will introduce a slightly more complex method: using Terminal to display hidden files. This is recommended when you want to always display hidden files.
Step 1: Press Command + Space on your Mac to open Spotlight. Search for Terminal and open it.
Step 2: Enter the following command in Terminal and press Enter.
defaults write com.apple.finder AppleShowAllFiles -bool true
killall Finder
Check in Finder.
To hide them again, enter the following command and press Enter.
defaults write com.apple.finder AppleShowAllFiles -bool false
killall Finder
On Mac, the "Library" folder is hidden by default to protect the system. As a result, many people have likely experienced confusion, such as "I want to edit a configuration file but can't find it" or "I want to clean up cache or unnecessary data but don't know where it is."
Actually, the Library folder can be easily displayed by changing a few Finder settings.
Method 1: Open Finder, click "Go" in the menu bar, and press the "option" key; the Library will appear automatically. You can click it to access the folder.
Method 2: Click "Go" > "Home" in the Apple menu bar to access your home folder. Then, click "View" in the Apple menu bar and click "Show View Options." Check "Show Library Folder" there to display the hidden Library folder.
How to search for hidden files on MacBy default, hidden files, especially system files, do not appear when you search for them on a Mac. In that case, you need Terminal or third-party software.
Here, I will explain how to find hidden .ds files using Terminal.
Open Terminal, copy and paste the following command, and press Enter to display the paths of files containing .ds.
sudo find / -iname ".ds" 2> /dev/null
How to delete hidden files on MacOn a Mac, you can view and delete hidden files using Finder or Terminal. However, since many hidden files are important system-related files, deleting them by mistake can lead to app malfunctions or startup issues.
Have you ever felt anxious, wondering, "I deleted it because it looked unnecessary, but was it really okay?"
Therefore, in this article, we will introduce how to safely identify and check typical hidden files such as .DS_Store and .localized by utilizing third-party software BuhoCleaner. By identifying and organizing only the unnecessary files, you will be able to manage your Mac more safely and comfortably.
Step 1: Download and install BuhoCleaner on your Mac.
Step 2: Open BuhoCleaner and click on Toolkit.
Step 3: Then, click on Macintosh HD > Applications in order to identify .DS_Store and .localized.
Step 3: Check those two files and click the "Delete" button.
Then, those files will be deleted.
Frequently Asked Questions
Q: How do I revert hidden files to visible on Mac?
A: To hide hidden files on Mac again, press Command (⌘) + Shift (⇧) + . (period) at the same time.
Q: How to create a hidden folder on Mac
A: On a Mac, if you add a . (dot) to the beginning of a folder name, it will automatically become a hidden folder. However, this is limited to system folders. If you want to hide other files or folders, please try using third-party software.