How to show hidden files on macOS

Find out how to reveal hidden system files and folders in Finder — a safe, reversible method that does not modify or delete any data on your Mac.

Step 1: Launch Terminal
  • Hold Command (⌘) + Space → enter Terminal and press Return
  • Step 2: Run the Visibility Command
  • Copy the command below into the Terminal window and hit Return
  • Terminal
    Loading...
    How this command works:
  • Toggles the macOS hidden file visibility setting in Finder
  • Restarts Finder to apply the change immediately
  • Does not modify, move, or delete any files on your system
  • Why files are hidden on macOS

    macOS hides certain files and folders by default to protect the operating system from accidental modifications. These include system configuration files, application support data, library folders, and files whose names begin with a dot (.). While this keeps Finder clean and prevents inexperienced users from accidentally breaking system components, advanced users and developers often need access to these files for troubleshooting, configuration, or development purposes.

    What becomes visible
  • System library folders — ~/Library, /Library, and /System/Library which contain application preferences, caches, and support files
  • Dotfiles — configuration files like .bash_profile, .zshrc, .gitconfig, and .ssh that are used by command-line tools and development environments
  • Application support data — hidden folders within apps that store logs, temporary data, and internal configuration
  • System configuration files — files used by macOS services for networking, security, and hardware management
  • Previously deleted items — files in hidden Trash folders on external drives or network volumes
  • Is it safe?

    Yes. This command only changes a visibility setting — it makes hidden files visible in Finder without altering, moving, or deleting anything. Your files remain exactly where they are. You can reverse the change at any time by running the command again, which will hide system files once more. This is the same method recommended by Apple Support for advanced users.

    Can I hide them again?

    Yes. Running the command a second time will reverse the setting and hide system files again. Finder will restart automatically and return to its default view. You can toggle visibility as often as needed — there is no limit and no risk to your data.

    Tips for working with hidden files
  • Be careful not to rename, move, or delete hidden system files — they are essential for macOS to function correctly
  • Use Finder's keyboard shortcut Command (⌘) + Shift + . (period) to quickly toggle hidden file visibility without Terminal
  • Hidden files and folders appear slightly translucent in Finder to distinguish them from regular files
  • If you only need to access the Library folder occasionally, hold Option (⌥) and click Go in the Finder menu bar
  • Consider hiding files again after you finish your task to keep Finder clean and avoid accidental modifications
  • Published Date: March 9, 2026
    Was this useful?