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

Hidden files exist on every computer — and most users never see them. Operating systems deliberately conceal certain files to protect system stability and reduce clutter. But there are plenty of legitimate reasons to surface them: troubleshooting software issues, recovering lost data, managing configuration files, or understanding what's taking up disk space.

Here's how hidden files work, how to find them across major platforms, and what to keep in mind before you start poking around.

What Are Hidden Files and Why Do They Exist?

Hidden files are files and folders flagged by the operating system to be invisible during normal file browsing. They aren't deleted or encrypted — they're simply set not to display by default.

Most hidden files fall into a few categories:

  • System files — core OS components that shouldn't be accidentally modified or deleted
  • Configuration files — settings for apps and the OS itself (common in Linux and macOS)
  • Temporary files — caches, logs, and working data created by software
  • Dot files — files beginning with a period (.) on Unix-based systems, which are hidden by convention

The logic is straightforward: if you can't see these files, you're less likely to accidentally move or delete something critical.

How to Show Hidden Files on Windows 🔍

Windows uses a file attribute system to mark files as hidden. There are two main methods for revealing them.

Using File Explorer

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

Hidden files and folders will immediately appear, slightly greyed out to distinguish them from visible files.

Using Folder Options

  1. Open File Explorer → click Options (or Folder Options)
  2. Go to the View tab
  3. Under Advanced settings, select Show hidden files, folders, and drives
  4. Optionally uncheck Hide protected operating system files to reveal even deeper system files — though this carries more risk

Using Command Prompt

To list hidden files in a directory via command line:

dir /a:h 

To remove the hidden attribute from a specific file:

attrib -h filename.txt 

Note: Windows separates hidden files from system-protected files. The second layer requires an additional toggle and is generally best left alone unless you have a specific reason to access it.

How to Show Hidden Files on macOS

macOS hides many files using the Unix dot-file convention and system-level flags. There are several ways to reveal them.

Keyboard Shortcut in Finder

In any Finder window, press:

Command + Shift + . (period) 

This toggles hidden files on and off instantly. It's the fastest method for most users.

Using Terminal

To show all hidden files system-wide:

defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder 

To hide them again, replace TRUE with FALSE and repeat the command.

Accessing Specific Hidden Folders

If you know the path, you can navigate directly via Finder → Go → Go to Folder and type the path manually (e.g., ~/.config or /Library). This is useful when you need a specific hidden directory without exposing everything.

How to Show Hidden Files on Linux 🐧

Linux follows the Unix convention: any file or folder beginning with a . is hidden by default.

In a File Manager

Most desktop file managers (Nautilus, Thunar, Dolphin) have a simple toggle:

  • Nautilus (GNOME): Press Ctrl + H
  • Dolphin (KDE): Go to View → Show Hidden Files
  • Thunar (XFCE):View → Show Hidden Files

In the Terminal

To list all files including hidden ones:

ls -a 

For a more detailed view with permissions and sizes:

ls -la 

Hidden files appear in the output with their . prefix visible. No special permissions are required to view your own dot files, though system-level files may require elevated privileges (sudo).

Key Variables That Affect What You'll Find

Finding hidden files is technically simple. What you find — and what you should do with it — depends heavily on your situation.

VariableWhy It Matters
Operating system and versionMethods differ across Windows 10, 11, macOS Ventura+, and Linux distros
User account permissionsStandard accounts can't access all system-hidden files
PurposeTroubleshooting, privacy auditing, and developer work each lead to different files
Third-party softwareSome apps store hidden data in non-standard locations
File system typeNTFS, APFS, and ext4 handle hidden attributes differently under the hood

What You Might Find — and What to Leave Alone

Revealing hidden files typically surfaces:

  • Application support folders (.AppData on Windows, ~/Library on macOS, ~/.config on Linux)
  • System restore and recovery data
  • Version control folders (.git directories in development projects)
  • Cache and log files from browsers and apps
  • OS-level configuration files

The general rule: if you didn't create it and don't recognize it, research it before modifying or deleting it. Many hidden files serve active functions. Removing the wrong one can cause application crashes, broken settings, or — in edge cases — OS instability.

Browsing hidden files is safe. Editing them is where your technical comfort level and specific goal become the deciding factors. The same directory that's routine for a developer to edit is potentially risky territory for someone unfamiliar with config file syntax or system dependencies.