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!

macOS Sequoia (macOS 15): A Comprehensive Guide to Compatibility macOS Sequoia, Apple's latest operating system, boasts exciting new features like iPhone mirroring, enhanced window tiling, AI-powered Safari and Mail, a dedicated Passwords app, and u

Many iPhone users upgrading to iOS 18 have reported cellular data issues with various apps. Streaming music, podcasts, and social media content may fail when using cellular data, even if Wi-Fi is unavailable. This problem, widely discussed in Apple

Meta's Llama large language model (LLM) offers a powerful alternative to cloud-based options like ChatGPT. Unlike its counterparts, Llama allows for local execution on your computer, granting offline access and seamless integration into personal wor

Apple officially released macOS Sequoia, which is now available for download for all Mac users! Sequoia, version number macOS 15.0, is named after the famous Giant Sequoia and National Park, California, where Apple is headquartered. macOS Sequoia brings many exciting new features to the Mac, most notably iPhone mirroring, which allows you to control your iPhone with your cursor and conveniently drag and drop files and photos between devices. Other new features include: standalone password app, more convenient window tiling, new wallpapers and screen savers, "Focus Mode" in Safari

The iPhone's "Back to Top" gesture is useful: Easily deal with dynamic islands iPhones have long provided a convenient “back to top” gesture: Just tap the top of the screen to quickly get back to the top of long text, email, or web pages. However, iPhone models equipped with Dynamic Island, such as the iPhone 14 Pro, iPhone 15 and iPhone 16 series, make this gesture slightly tricky. The Dynamic Island is located at the top of the screen and integrates a camera, microphone, and real-time information display for various applications (such as music playback, timer, or navigation). The problem is that when users habitually touch the top of the screen, it is easy to accidentally touch the dynamic island, thereby accidentally switching to the dynamic island.

macOS Sequoia 15 release candidate is now available! Apple has released the macOS Sequoia 15 release candidate (RC) to Mac users involved in developers and public beta programs. At the same time, users of qualified device can also download iOS 18 RC, iPadOS 18 RC, watchOS 11 RC, tvOS 18 RC and visionOS 2 RC. If you have been waiting for the RC version or want to get the first to experience the version that will be released next Monday, you can now install macOS Sequoia RC through the developer beta or public beta program. Apple

Many Mac users find that the Apple Music app will open randomly and even play music without any action. This behavior of Apple Music randomly opening and playing music is very annoying to many Mac users. This article will explain why Apple Music is open randomly and provides four different solutions. Why does Apple Music open randomly? There are two main reasons why Apple Music apps are opened randomly on Mac: Unexpected keyboard or touch bar input: Inadvertent pressing of keyboard media buttons (such as play/pause, back/forward buttons) may cause Apple M to be

macOS Sequoia 15 Beta 7 and iOS 18 Beta 7 Now Available for Testing Apple has released the seventh beta versions of its upcoming operating systems, including macOS Sequoia 15, iOS 18, iPadOS 18, watchOS 11, tvOS 18, and visionOS 2. The macOS Sequoi


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

Zend Studio 13.0.1
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor
