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
- Open File Explorer
- Click the View tab in the ribbon (Windows 10) or the View menu (Windows 11)
- 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
- Open File Explorer → click Options (or Folder Options)
- Go to the View tab
- Under Advanced settings, select Show hidden files, folders, and drives
- 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.
| Variable | Why It Matters |
|---|---|
| Operating system and version | Methods differ across Windows 10, 11, macOS Ventura+, and Linux distros |
| User account permissions | Standard accounts can't access all system-hidden files |
| Purpose | Troubleshooting, privacy auditing, and developer work each lead to different files |
| Third-party software | Some apps store hidden data in non-standard locations |
| File system type | NTFS, 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 (
.AppDataon Windows,~/Libraryon macOS,~/.configon Linux) - System restore and recovery data
- Version control folders (
.gitdirectories 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.