How to Show Hidden Files on Any Device or Operating System
Hidden files exist on every major operating system — and for good reason. Operating systems tuck away critical system files, configuration data, and application caches to prevent accidental deletion or modification. But there are plenty of legitimate reasons you might need to see them: troubleshooting software issues, accessing app data folders, managing dotfiles on a developer machine, or recovering files that seem to have vanished.
Here's how to reveal hidden files across the most common platforms, along with what shapes the experience depending on your setup.
Why Files Get Hidden in the First Place
Files are typically hidden in one of two ways:
- System-level hiding — the operating system flags a file or folder as hidden, often to protect core functionality
- Name-based hiding — on Unix-like systems (macOS, Linux), any file or folder starting with a dot (
.) is treated as hidden by default
Neither type is encrypted or inaccessible. They're simply not shown in standard directory views. Making them visible is usually a setting toggle or a keyboard shortcut — no special software required in most cases.
How to Show Hidden Files on Windows
Windows uses a Hidden attribute that can be toggled in File Explorer or via the command line.
File Explorer Method (Windows 10 and 11)
- Open File Explorer
- Click the View tab (Windows 10) or the View menu (Windows 11)
- Check Hidden items
On Windows 11, you may need to click Show first, then toggle Hidden items from the submenu.
Folder Options Method
- Open File Explorer
- Click View → Options → Change folder and search options
- Go to the View tab
- Under Hidden files and folders, select Show hidden files, folders, and drives
- Click Apply
Command Prompt Method
To reveal hidden files in a specific folder via Command Prompt:
attrib -h -s "C:path ofolder*" /s /d This removes the hidden and system attributes from files. Use with care — modifying system-flagged files can affect OS behavior.
🛠️ Note: Even with hidden files visible, protected operating system files require a separate toggle (Hide protected operating system files) in Folder Options. These are hidden for good reason — only uncheck that option if you know what you're looking for.
How to Show Hidden Files on macOS
macOS hides files starting with a dot and some system directories by default.
Keyboard Shortcut (Fastest Method)
While in Finder, press:
Command + Shift + . (period)
This toggles hidden files on and off immediately. It works in Open/Save dialogs too, which is useful when an app needs to access a hidden config file.
Terminal Method
To permanently show hidden files in Finder:
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder To hide them again, change TRUE to FALSE and repeat.
Accessing Specific Hidden Folders
Some macOS system folders (like ~/Library) are hidden but accessible directly:
- In Finder, click Go in the menu bar
- Hold the Option key — Library appears in the dropdown
- Click it to open directly
How to Show Hidden Files on Linux
On Linux, the dot-prefix convention is the standard hiding mechanism. Most file managers handle this simply.
In a Graphical File Manager
- Nautilus (GNOME): Press Ctrl + H
- Dolphin (KDE): Press Alt + . or go to View → Show Hidden Files
- Thunar (XFCE): View → Show Hidden Files
In the Terminal
To list hidden files in the current directory:
ls -a To list them with details:
ls -la The -a flag includes entries starting with a dot, including . (current directory) and .. (parent directory).
Comparing Hidden File Access Across Platforms
| Platform | Quickest Method | Persistent Toggle | Requires Terminal? |
|---|---|---|---|
| Windows 10/11 | File Explorer View tab | Yes (Folder Options) | No |
| macOS | Cmd + Shift + . | Via Terminal command | Optional |
| Linux (GUI) | Ctrl + H or Alt + . | Per-session or config file | Optional |
| Linux (Terminal) | ls -a | N/A (per command) | Yes |
Variables That Affect Your Experience 🔍
Showing hidden files sounds straightforward, but a few factors shape how it actually plays out:
- OS version — Menu locations and keyboard shortcuts have shifted between Windows 10 and 11, and between macOS versions
- File manager — Third-party file managers (like Total Commander on Windows or Double Commander on Linux) have their own visibility settings independent of system defaults
- User permissions — Even with hidden files visible, some system-protected files require administrator or root access to open or modify
- What you're actually looking for — Developer dotfiles (
.gitconfig,.bashrc), app data folders (AppDataon Windows,~/Libraryon macOS), and OS system files are all "hidden" but live in different places and carry different risk levels if edited
A developer toggling dotfiles on a Linux machine has a very different workflow than someone on Windows trying to locate a hidden folder for a game save or browser profile. The steps to make files visible are the same — but what to do once you can see them depends entirely on the context.
The method that fits your situation comes down to your operating system, what you're trying to access, and how comfortable you are working close to system-level file structures.