Home > Mac Data Recovery Tips

How to Make Mac Show Hidden Files via Terminal/Finder/Shortcut

Updated on Sunday, December 15, 2024

iBoysoft author Yvonne Feng

Written by

Yvonne Feng
Professional tech editor

Approved by

Jessica Shee

English Français Deutsch やまと Español Português

Summary: This post tells how to make Mac show hidden files quickly. If you can't locate certain disappeared files on your Mac computer, you can also use iBoysoft Data Recovery to find them easily.

recover and show hidden files on Mac

It is reasonable and convenient that macOS keeps some files hidden by default. However, what if you need to show hidden files for some reason? For example, you manually hide files on your Mac with the "chflags hidden" command, keeping them from accidental deletion, but later you can't find these hidden files anymore.

Or you want to delete some leftover files after uninstalling apps on Mac, but you can't find them because Mac OS has hidden them. What should you do to make Mac show hidden files or hidden folders?

Don't worry. This article will guide you on how to show hidden files on macOS Sonoma, Ventura, macOS Monterey, or earlier as well as show hidden folders on Mac. 

Here's a table to help you have a quick look at the solutions.

MethodsEasy to Use          Outstanding Features
Keyboard ShortcutYesGood for quick viewing of hidden files
Finder YesSuitable for finding specific system folders
Terminal  NoAll hidden files can be displayed permanently or temporarily
iBoysoft Data Recovery YesQuickly display and recover all hidden files on your Mac

Why does macOS hide files or folders?

A hidden file or folder is a file/folder which filesystem utilities do not display by default when showing a directory listing. Mac OS has always hidden some vital files on the startup disk.

You must be wondering, why Apple Inc. doesn't let you see hidden files on Mac. Generally speaking, there are two main reasons:

For security: The main reason is that the core system files must be hidden so your Mac can run correctly. It will protect these files from being damaged or deleted by the average Mac user. All the hidden files include preferences, caches, logs, and other service files of the installed apps and the Mac operating system.

For tidiness: Another reason some files are hidden is that if files on Mac are all visible to you, your computer and the desktop would appear like a mess. Therefore, files that are not used frequently are put out of sight.

show hidden files/folders on Mac

However, in some cases, you probably want to find hidden files to troubleshoot apps' errors, find some lost/disappeared files, or clear the cache on Mac by deleting hidden files for more available spaces. Don't know how to spotlight these invisible files? Don't worry, the following part will go into detail.

Share this part with others to know why macOS hides files or folders.

 

How do you show hidden files through a keyboard shortcut?

Actually, a keyboard shortcut is the easiest and most efficient way of viewing hidden files on Mac computers, because you only need to press some keys on your keyboard. Showing hidden files and folders on your Mac with the following steps:

  1. Click the Finder icon at the Mac Dock to open it.
  2. Click the Macintosh HD folder under Locations in the left sidebar.
  3. Press Command + Shift + Period (.) key combinations.
    shortcut to show hidden files/folders on Mac

Then, you will see a dozen Macintosh HD folders and files that appear grayed out in the right column. That indicates all the hidden files are showing up. To access the files of a Macintosh HD folder, double-click on it.

show hidden files/folders in the Finder on Mac

Besides macOS volume, this method can also be used to show hidden files and folders on external hard drives and USB flash drives, and hidden files on SD cards. If you can't see files on the external hard drive on Mac, maybe those files are hidden. Using this key shortcut should work, too.

Taking SD cards as an example, you can take the steps below to show hidden files on SD cards on Mac.

How to show hidden files on SD cards on Mac:

  1. Insert the SD card containing the hidden files into your Mac.
  2. Open it from settings on the desktop.
  3. Press the Command + Shift + Period (.) keys.

How do you reveal hidden files via the Mac Finder?

The Finder is the default file manager and graphical user interface shell used on macOS. It is responsible for all applications, files, disks, network volumes, etc. So, if you want to reveal hidden files and folders, you can show hidden files in the Finder.

Here's how to make Mac Finder show hidden files:

  1. Open the Finder on your Mac.
  2. Click Go on the menu bar and press the Option key (It would be the Alt key on some keyboards), you will see the hidden Library folder.
  3. Hold the Option key still, click on the Library folder, and check if you can find the desired files.

You can also do the following to see and access the contents of the hidden Library folder.

  1. Open the Finder on your Mac.
  2. Click Go from the menu bar.
  3. Choose Go to Folder or press the Shift + Command + G keys.
    go to the folder on Mac
  4. Type "~/Library" into the box and click Go.
    open the Library folder on Mac Finder

Didn't find the files that you want with the methods mentioned above? Well, let's move forward to the next way.

How do you show the hidden files on Mac with Terminal?

Showing hidden files on Mac with the Terminal utility is another advanced way. Running Terminal requires familiarity with the command prompt. If you are familiar with the command line, do the following to make your Mac show hidden files and folders:

  1. Open Terminal from Launchpad > Other.
  2. Type the following command in the Terminal window and press the Return key.defaults write com.apple.finder AppleShowAllFiles TRUE
  3. Then type in this one and hit the Return key to refresh the Finder and the desktop.killall Finder 
    find the hidden files on Mac with Terminal

Let's look at your Macintosh HD folder to see all the hidden folders/files including any temporary files saved on the desktop.

 

How do you recover and show hidden files on Mac with software?

It is possible that you can't see hidden or disappeared files on your Mac after trying all the mentioned solutions. The last resort to show hidden files on macOS Ventura, macOS Monterey, or earlier is to use an intuitive third-party app.

iBoysoft Mac Data Recovery is a professional and 100% safe app to help you quickly retrieve all the files on your Macintosh hard drive, including the hidden ones. Whatever reasons you lose data, such as accidental deletion, virus attack, or secret files hidden by the Mac operating system, this software can get those files back.

This app is fully compatible with macOS 14 Sonoma, macOS 13 Ventura, macOS 12 Monterey, macOS 11 Big Sur, macOS 10.15 Catalina, macOS 10.14 Mojave, macOS 10.13 High Sierra, macOS 10.12 Sierra, and Mac OS X 10.11 El Capitan. Besides, it works fine on Mac models with T2/M1/M1 Pro/M1 Max chips.

Through only 4 steps, you can recover and show hidden files and folders on M1 & Intel Macs:

  1. Free download, install, and launch iBoysoft Data Recovery for Mac on your computer.
  2. Select the startup disk that contains the hidden files and folders and click Search for Lost Data. This will scan for massive files on this drive, including all the hidden files and lost/deleted data.
    recover hidden files on mac
  3. After finishing the scanning, you can spotlight the files you want according to their file types.
  4. Select files you want to recover and then click Recover to get them back.

With this tool, you can recover disappeared files from external hard drives, SD cards, USB flash drives, Mac internal hard drives, etc. Moreover, it supports recovering lost files from formatted, corrupted, unreadable, and unmountable drives on Mac.

How do you hide hidden files on a Mac?

After seeing and editing these files, you may want to hide these hidden files again. After all, they're related to the security of your macOS.

How do you hide hidden files on a Mac? Please take a look at the solutions below.

Solution 1: Hide hidden files on Mac with a shortcut

If you have shown the hidden files in Finder with a keyboard shortcut, and vice versa, you can also hide them using the same keyboard shortcut. To do this, press Command + Shift + Period once more.

Solution 2: Hide hidden files with Terminal

If you show them with a command line previously, you can make these files invisible with Terminal.

  1. Open Terminal.
  2. Type the below command in the Terminal command prompt and hit Enterdefaults write com.apple.finder AppleShowAllFiles FALSE
  3. Still type in this one to refresh the Finder as you did before. killall Finder

How to hide files and folders to make them private?

You may have several files or folders you don't want others to access. For instance, if you stay up to work on a document or design, you don't want others to plagiarize your work. Fortunately, there is a neat trick to hide files and folders on your Mac computer.

  1. Open Terminal on your Mac.
  2. Type in the following command and press the Space key. chflags hidden
  3. Drag files or folders you want to hide into the Terminal window. It will show the file path in Terminal windows, and you'd better record this path so that you can show this file when you need it.
  4. Press Enter to ensure this operation. You will see your files disappear from the Finder.

If you want to show the hidden files and folders on your Mac as usual again, you can use the same procedure. But this time, type "chflags nohidden" instead of "chflags hidden".

 Note: If you failed to hide files and find the Terminal shows "Zsh: permission denied" prompt, you can fix the Zsh permission denied error in macOS Terminal first and then try the above commands again.

Wrap things up

It doesn't matter whether you want to show the hidden files out of curiosity or to troubleshoot some issues on your Mac. The above solutions should help locate these files. But compared with the complicated command lines, iBoysoft Data Recovery for Mac is the easiest and risk-free method to find the missing files on Mac computers.

Share this post if you find it useful and insightful.

 

People Also Ask

Read More Questions