How to Locate Hidden Files on Windows, Mac, and Linux
Hidden files exist on every operating system — and for good reason. Operating systems deliberately conceal certain files to prevent accidental deletion or modification of components that keep your system running. But there are plenty of legitimate reasons you might need to find them: troubleshooting software, recovering lost data, managing configuration files, or cleaning up storage space.
Here's what you need to know about how hidden files work and how to surface them across different platforms.
Why Files Get Hidden in the First Place
Files are hidden through two main mechanisms:
System-level hiding — The operating system flags specific files and folders as hidden to protect critical processes. Examples include system configuration folders, application support directories, and temporary caches.
User or application hiding — Some apps create hidden folders to store preferences and data without cluttering your file browser. On Unix-based systems (macOS, Linux), any file or folder whose name begins with a dot (.) is automatically treated as hidden.
Neither type of hidden file is inherently dangerous or suspicious. Hidden simply means "not shown by default."
How to Show Hidden Files on Windows
Windows uses a file attribute system to mark files as hidden. You can toggle visibility in a few ways:
File Explorer Method
- Open File Explorer
- Click the View tab (Windows 10) or the View menu at the top (Windows 11)
- Check the Hidden items checkbox
On Windows 11, you may need to click Show from the View menu, then select Hidden items from the submenu.
Folder Options Method
- Open File Explorer → go to View → Options (or Folder Options)
- Click the View tab
- Under Advanced settings, select Show hidden files, folders, and drives
- Click Apply
Protected Operating System Files
Windows also has a separate category: protected operating system files. These are hidden even when "show hidden files" is enabled. To reveal them, uncheck Hide protected operating system files in the same Folder Options menu — though be cautious, as these files are hidden for a reason.
Command Prompt Method
For users comfortable with the command line, the dir /a command in Command Prompt will list all files in a directory, including hidden ones. The /a:h flag specifically filters for hidden files.
How to Show Hidden Files on macOS 🍎
macOS hides dotfiles and system directories from Finder by default.
Keyboard Shortcut (Quickest Method)
While in any Finder window or on the Desktop:
- Press Command + Shift + . (period)
This instantly toggles hidden file visibility on and off. It works in Open/Save dialog boxes too, which is useful when an app asks you to locate a file in a hidden directory.
Terminal Method
To permanently enable hidden file visibility in Finder:
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder To reverse it, replace TRUE with FALSE and run the command again.
Specific Hidden Folders Worth Knowing
On macOS, the Library folder inside your home directory (~/Library) is hidden by default. It contains application preferences, caches, and support files. You can access it directly by holding the Option key and clicking the Go menu in Finder — Library will appear as an option.
How to Show Hidden Files on Linux
Linux follows the dotfile convention: any file or directory with a name starting with . is hidden from standard directory views.
In a File Manager (GUI)
Most Linux file managers (Nautilus, Thunar, Dolphin) have a Show Hidden Files option under the View menu, or you can toggle it with Ctrl + H.
In the Terminal
The standard ls command skips hidden files. Use:
ls -a— shows all files including hidden onesls -la— shows all files with detailed permissions and metadata
The -a flag is one of the most commonly used options across all Linux terminal work.
Key Variables That Affect Your Approach 🔍
Not every method works equally well for every situation. A few factors shape which approach makes the most sense:
| Factor | How It Changes Your Approach |
|---|---|
| OS version | Menu locations differ between Windows 10 and 11, and macOS versions |
| Technical comfort level | GUI methods vs. command-line methods carry different risks |
| Purpose | Browsing hidden files casually vs. editing config files vs. recovery work |
| File type | System-protected files require additional steps beyond basic hidden file toggles |
| Admin permissions | Some hidden files require administrator or root access to view or modify |
What You Might Actually Find
When you enable hidden file visibility, expect to see:
- Dotfolders (
.ssh,.git,.config) — used by apps and developer tools - System directories — Windows equivalents like
AppData,ProgramData, andSystem Volume Information - Temporary and cache files — created by browsers, installers, and apps
- Backup and restore points — especially on Windows
Most of these files should be left alone unless you have a specific reason to interact with them. Accidentally modifying or deleting system-level hidden files can cause application crashes or OS instability.
When Visibility Alone Isn't Enough
Showing hidden files in your file manager gives you a visual view, but doesn't grant the ability to edit everything you see. Permissions are a separate layer — particularly relevant on macOS and Linux, where file ownership and read/write access are strictly enforced. On Windows, User Account Control (UAC) serves a similar protective function.
If you're hunting for a specific hidden file — a config file, a missing app folder, or a corrupted preference file — the approach that works depends heavily on which OS you're running, what version, how your system is configured, and what level of access your user account has.