keepcalculator

06 Numbers and Powers

Unhide Folders on Mac: 4 Ways That Work

Card No. 06·73266 · Updated · Standard formula, shown below

To unhide folders on a Mac, you can use Terminal commands, the Go to Folder shortcut, or a third-party app, depending on how the folder was hidden. This guide covers the built-in methods first, then explains when each approach is the right one.

Why Folders Get Hidden on a Mac

macOS hides folders for two main reasons: the system hides its own critical files (like /usr or /Library) to prevent accidental damage, and users or apps can manually hide folders by prefixing the name with a dot (e.g., .myFolder) or by using the chflags hidden command. Finder does not show dotfiles by default, and it also ignores files with the hidden flag. Understanding which type you are dealing with matters because the unhide method differs.

Method 1: Unhide a Dot-Prefixed Folder in Finder

If the folder name starts with a period, it is hidden from Finder and most apps. The simplest fix is to rename it without the leading dot, but you cannot do that from Finder because you cannot see it. Use Terminal:

  1. Open Terminal (Finder > Utilities > Terminal).
  2. Type mv ~/Documents/.myFolder ~/Documents/myFolder and press Enter. Replace the paths with your actual folder location.
  3. The folder now appears in Finder immediately.

This works for any dotfile, not just folders. If you only want to view dotfiles temporarily without renaming, press Command + Shift + . (period) inside any Finder window. This toggles hidden file visibility for that session.

Method 2: Unhide a Folder with the chflags Command

macOS has a specific hidden flag that is separate from the dotfile convention. A folder can have a normal name but still be invisible because of this flag. To remove it:

  1. Open Terminal.
  2. Type chflags nohidden ~/Documents/myFolder and press Enter.
  3. The folder appears in Finder right away.

If you are not sure whether the folder is hidden by the flag or by a dot, run ls -laO in the parent directory. The O flag shows the hidden attribute. A folder with hidden listed needs chflags nohidden. A folder with a dot prefix needs the rename method.

Method 3: Reveal System Folders That Are Hidden by Default

Some folders are hidden by macOS itself, not by a user action. The most common example is the user Library folder, which contains app preferences and caches. To unhide it permanently:

  1. Open Terminal.
  2. Type chflags nohidden ~/Library and press Enter.
  3. The Library folder now shows in your home directory.

If you prefer not to change the flag, you can jump to it anytime with Finder’s Go > Go to Folder (shortcut Command + Shift + G) and type ~/Library. This does not unhide it, but it gives you access without altering system settings.

Method 4: Use Finder’s Go to Folder for Any Hidden Path

This is the fastest way to access a hidden folder without changing anything. It works for dotfolders, flagged folders, and system folders alike. Open Finder, press Command + Shift + G, type the full path (e.g., /private/etc or ~/.ssh), and press Enter. The folder opens in a Finder window. This method is read-only in the sense that you can browse and copy files, but you cannot see the folder in the sidebar or parent directory.

Common Problems and Fixes

If you try the commands above and the folder still does not appear, check these issues:

  • Typo in the path: Terminal is case-sensitive. ~/Documents is not the same as ~/documents.
  • Permission errors: If you get “Operation not permitted,” the folder may belong to another user or to the system. Use sudo only if you understand the risk, and never on system directories unless you have a specific reason.
  • Finder caching: Rarely, Finder does not refresh. Press Option + Right-click on the Finder icon in the Dock and choose Relaunch.
  • iCloud Drive folders: Some hidden folders are stored in iCloud and may not respond to local chflags until they are downloaded. Check the iCloud status in System Settings.

How to Hide a Folder Again (the Reverse)

Once you have unhidden a folder, you may want to re-hide it. Use the same commands in reverse: chflags hidden ~/Documents/myFolder or rename the folder to start with a dot. Note that hiding folders is not encryption. Anyone who knows the path or uses the Go to Folder shortcut can still access it. For real privacy, use FileVault disk encryption or a password-protected archive instead.

Third-Party Apps vs. Built-In Methods

Apps like Funter or TinkerTool can show hidden files with a menu bar toggle, which is convenient if you frequently need to view dotfiles. However, they do nothing that Terminal cannot do. The built-in Command + Shift + . shortcut already toggles hidden file visibility in Finder for the current session. The main reason to use a third-party app is if you want a persistent global setting without using Terminal. For most users, the built-in methods are sufficient and avoid installing extra software.

Frequently Asked Questions

Why can’t I see the hidden folder even after using chflags nohidden?

If the folder name still starts with a dot, chflags will not help. Check the name with ls -la in Terminal. If it shows a leading period, rename it as described in Method 1. Also, ensure you are looking in the correct parent directory in Finder.

Is it safe to unhide system folders like /Library?

Viewing them is safe. Modifying files inside system folders can break apps or macOS itself. Unhiding the user Library folder is generally safe, but avoid deleting anything unless you know what it does. For system-level folders like /System, do not unhide them unless you are troubleshooting with specific guidance.

Does unhiding a folder affect its contents or permissions?

No. The hidden flag only controls visibility in Finder. It does not change file permissions, ownership, or encryption. If the folder was accessible before, it remains accessible after unhiding.

Can I unhide a folder on an external drive?

Yes, if the drive is formatted as APFS or Mac OS Extended. Connect the drive, open Terminal, and use the same commands with the volume path, such as /Volumes/MyDrive/.myFolder. For exFAT or FAT32 drives, the hidden flag is not supported in the same way; instead, the folder may be hidden by the operating system’s own rules, and renaming the dot prefix usually works.

What is the difference between a dotfile and a hidden flag?

A dotfile is a Unix convention: any file or folder whose name starts with a period is hidden from default listings. The hidden flag is a specific attribute stored in the file system that Finder respects. A folder can have both, one, or neither. The ls -laO command shows both: the dot in the name and the hidden flag in the attributes column.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →