Show Hidden Files on Mac: How to View These Items on MacOS?
MacOS, like other operating systems, hides some files to protect important files from being deleted and prevent system corruption. But sometimes you may need to access "hidden" files on your Mac, such as editing system files or application settings, manually cleaning up the system, troubleshooting, and more. This article will explain how to show hidden files and search for hidden files on your Mac, including using Finder apps and Mac terminal apps.
Why does Mac hide files?
There are many reasons why your computer hides files. Typically, your device removes some important information to help your Mac run as a whole. In other cases, you may want to show hidden files because of their read or edit settings. The owner may choose to hide content containing sensitive information, and you may not have the necessary permission to view them.
Sometimes, files may be hidden on your Mac because they haven't been used for a long time. You can still search for these files, but for example, they won't appear in your "recent use" until you reopen them.
How to view hidden files on Mac?
You can display hidden files on your Mac in a variety of ways, including the following:
- Use shortcut keys to display files in Finder
- View hidden files on your Mac through the terminal
- Check the ~/Library folder of Mac
- Show hidden files in Commander One
- Show hidden folders using AppleScript
Let us introduce each method in more detail.
1. Use shortcut keys to display the file in Finder
The easiest way to show hidden files on your device is to use the Show hidden files shortcut key. Follow these steps to use shortcut keys on your Mac:
- In macOS's Finder, go to any folder where hidden files may be placed (for example, the Macintosh root directory).
- Press Shift Command (⌘) period to switch and view hidden files immediately.
The following is an example of the Macintosh HD directory after the hidden file is visible:
-
View hidden files on your Mac through the terminal
Terminal is a standard Apple application that can be found in Launchpad. This application helps perform various tasks on your Mac using special commands, including the ability to display hidden files on your Mac. To find and make hidden files on your Mac accessible, follow these steps:
- Open through Activity Monitor or Spotlight. Searching in Spotlight is the easiest way to do it. Copy and paste the following command into the terminal window, omitting the end period:
-
- defaults write com.apple.finder AppleShowAllFiles -bool true killall Finder.
To hide the file, you need to repeat this.
To view hidden files on your Mac via ~/Library, you need to open Finder or click on Desktop. Then, follow the steps below:
- Go to the
- Menu bar and select Go to > Go to folder . Alternatively, press Ctrl Shift G on the keyboard to access the Go to Folder menu. Enter
- ~/Library as the path.
Commander One is a third-party file manager for macOS. It's especially easy to view hidden files in Commander One, as this app has a special switcher for this operation in its upper panel. Here's how to show hidden files in Commander One:
- Open
- Commander One. Click the
- Switcher icon ; it is located on the far left of the middle of the page.
- View the file on the left.
5. Use AppleScript to show hidden folders
AppleScript is a scripting language used in macOS. It can be viewed and edited in a program called Script Editor. In our example, its practical application is to display hidden files and folders in macOS by creating commands. However, this method may be more complex than the one described above. For those who use it for the first time, the following detailed instructions will help with the task:
- Open the Script Editor application from Launchpad.
- Click the New Document button.
- Paste the code shown in the screenshot below (step 2) into the editor window (omit the period at the end!).
- Click the Run button.
- Click TrueShow hidden files, click FalseHide them.
- Save this file for later use.
Use our tips to show hidden folders on your Mac and delete them
It is much easier to find hidden files on your computer than you think, and you have a variety of options – choose the one you think is easiest to use. After viewing the file, you can delete any unwanted files. However, you must be careful. Deleting important files can damage your operating system and void your warranty, so don't touch anything unless you know exactly what you want to modify. We recommend that you use third-party tools that can safely delete files and folders from your device rather than relying on limited technical experience.
MacKeeper's Safe Cleanupsolution allows you to do this, and you can get one action for free. So, it's worth a try. Frequently Asked Questions about Hidden Files and Folders on MacBook
1. How to view all files on your Mac?
The easiest way to view all files on a Mac is to use the
Shift Command (⌘) periodkeyboard shortcuts. If you want to find files quickly, you need to use Spotlight, a built-in macOS search tool. You can call the Spotlight window from the menu bar on the right (magnifying glass icon) or use
Command Space. Another way to find a file is to contact Finder Explorer for help. To do this, open the app and enter the query of interest in the search bar located in the upper right corner.
2. How to permanently display hidden files on your Mac?
To permanently show hidden files on your Mac, you should open a terminal, type
sudo chflags nohidden, and press Enter. After moving files that appear in the terminal, you can now view them anytime. 3. How to view hidden files on SD card on my Mac?
Whenever you insert an SD card or connect another data store to your Mac, it appears in the left panel of "Position" in Finder. If you go to that location and press
Shift Command (⌘) period, you will be able to see hidden files on the SD card, USB drive, or external hard drive. 4. How to find large hidden files on your Mac?
You can use the same tricks in this guide to find large and small hidden files. Again, the best way is to go through the
Shift Command (⌘) period on the keyboard.5. How to delete hidden files on your Mac?
First of all, you need to understand that some files are hidden in macOS to protect them from being deleted. Deleting them can damage the entire computer.
However, some hidden files are useless residual files that take up a lot of storage space. Use specialized software (e.g. MacKeeper) to delete junk files without corruption of important files.
The above is the detailed content of Show Hidden Files on Mac: How to View These Items on MacOS?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











After upgrading to the latest macOS, does the Mac run slower? Don't worry, you are not alone! This article will share my experience in solving slow Mac running problems after upgrading to macOS Sequoia. After the upgrade, I can’t wait to experience new features such as recording and transcription of voice notes and improved trail map planning capabilities. But after installation, my Mac started running slowly. Causes and solutions for slow Mac running after macOS update Here is my summary of my experience, I hope it can help you solve the problem of slow Mac running after macOS Sequoia update: Cause of the problem Solution Performance issues Using Novabe

This guide explains how to convert between Live Photos, videos, and GIFs on iPhones and Macs. Modern iPhones excel at image processing, but managing different media formats can be tricky. This tutorial provides solutions for various conversions, al

macOS WindowServer: Understanding High CPU Usage and Solutions Have you noticed WindowServer consuming significant CPU resources on your Mac? This process is crucial for your Mac's graphical interface, rendering everything you see on screen. High C

You can’t really use the internet nowadays without encountering the hashtag symbol that looks like this — #. Popularized on a global scale by Twitter as a way to define common tweet themes and later adopted by Instagram and other apps to c

From the dawn of time to just about a few years ago, all of us sported a pair of wired headphones and were convinced that this is simply how it will be done forever. After all, they are the easiest technology around: just plug them in, put them

You might need to repair your Mac disk if your computer won’t start up, apps keep freezing, you can’t open certain documents, or the performance has slowed to a halt. Luckily, Apple includes a handy tool you can use to

Managing Mac storage: A comprehensive guide to deleting files Daily Mac usage involves installing apps, creating files, and downloading data. However, even high-end Macs have limited storage. This guide provides various methods for deleting unneces

With a market share of over 65.7%, Google Chrome is the biggest web browser in the world. You can use it if you use other operating systems like Windows and Android, but many Mac users also prefer Chrome over Safari. Mo
