How to See Hidden Files on Windows, Mac, and Linux

Hidden files are everywhere — and for good reason. Operating systems tuck away system files, configuration data, and app preferences to keep things tidy and protect users from accidentally deleting something critical. But there are plenty of legitimate reasons to need a look: troubleshooting software, recovering lost data, editing config files, or just satisfying curiosity about what's actually on your drive.

Here's how to reveal hidden files across every major platform, plus what to keep in mind before you start digging.

Why Files Get Hidden in the First Place

Hidden files aren't encrypted or locked — they're just flagged with an attribute or naming convention that tells the OS to skip over them in normal directory views. There are two main categories:

  • System-hidden files — Protected operating system files that keep your machine running. Think boot loaders, registry hives, and kernel components.
  • User-hidden files — Application config files, cache data, dotfiles, and preferences. These are hidden for cleanliness, not security.

On Windows, files are hidden via a file attribute flag. On macOS and Linux, files beginning with a dot (.) are hidden by convention — hence the term "dotfiles." Understanding which type you're dealing with matters, because the method for revealing them differs slightly.

How to See Hidden Files on Windows 🖥️

Using File Explorer (Windows 10 and 11)

  1. Open File Explorer
  2. Click the View tab in the ribbon (Windows 10) or the View menu (Windows 11)
  3. Check the box labeled Hidden items

That's it. Hidden files and folders will immediately appear, slightly faded compared to normal files — the faded appearance is a visual cue that they carry the hidden attribute.

Revealing Protected System Files Separately

Windows draws a distinction between ordinary hidden files and protected operating system files. To expose those:

  1. Open File Explorer → View → Options → Change folder and search options
  2. Go to the View tab
  3. Uncheck Hide protected operating system files (Recommended)
  4. Confirm the warning prompt

This reveals files like pagefile.sys, hiberfil.sys, and other low-level system components. Be careful — these files exist for a reason, and deleting or moving them can cause system instability.

Using the Command Prompt

For a quick terminal approach, navigate to a directory and run:

dir /a:h 

This lists all files with the hidden attribute in the current folder. To include system files too:

dir /a:hs 

How to See Hidden Files on macOS 🍎

Keyboard Shortcut (macOS Sierra and Later)

The fastest method in Finder:

  1. Open Finder and navigate to the folder you want to inspect
  2. Press Command + Shift + . (period)

Hidden dotfiles and folders will instantly appear, shown in a slightly greyed-out style. Press the same shortcut again to hide them.

Using Terminal

For more granular control, the Terminal gives you direct access:

ls -a 

This lists all files including hidden ones in the current directory. The -a flag stands for "all." You'll see entries like .DS_Store, .bash_profile, or .zshrc — all hidden by the dot-prefix convention.

To make hidden files permanently visible in Finder via Terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder 

Restart Finder, and hidden files will stay visible until you reverse the command.

How to See Hidden Files on Linux

Linux is where hidden files come up most frequently, especially for developers and power users managing dotfiles.

In a File Manager

Most Linux desktop file managers — Nautilus (GNOME), Dolphin (KDE), Thunar (XFCE) — have a Show Hidden Files toggle, usually under the View menu or triggered by pressing Ctrl + H.

In the Terminal

ls -a 

Or for a detailed view including permissions, ownership, and file size:

ls -la 

Hidden directories like .config, .local, and .ssh store application settings, local user data, and SSH keys respectively — commonly accessed when troubleshooting or migrating a system.

Key Differences Across Platforms

PlatformHidden byToggle MethodTerminal Command
WindowsFile attribute flagFile Explorer → View → Hidden itemsdir /a:h
macOSDot prefix (.)Cmd + Shift + . in Finderls -a
LinuxDot prefix (.)Ctrl + H in file managerls -a

Variables That Affect What You'll Find

Revealing hidden files is straightforward — but what you actually see depends on several factors:

  • OS version: Older versions of Windows (7, 8) use a slightly different menu path in File Explorer
  • User account permissions: Standard users on shared or managed machines may not be able to reveal system-protected files
  • Third-party file managers: Apps like Directory Opus (Windows) or ForkLift (Mac) have their own hidden file settings separate from the native OS toggle
  • Remote or network drives: Files hidden on a server may require access through that system's OS, not your local toggle
  • External drives: An NTFS drive viewed on macOS may show different hidden files than it would on Windows, depending on file system translation

A Note on What You Find There

Revealing hidden files doesn't change them — it just makes them visible. The files themselves remain exactly as they were. That said, editing or deleting files you find in system-level directories can have real consequences depending on what they are. Configuration files for apps are generally safe to explore; OS-level boot files and registry-linked components are another matter entirely.

Your own setup — the operating system you're running, the permissions your account holds, and what you're specifically trying to access — is what determines how far down the rabbit hole you can actually go. 🔍