Hidden files are there, but your operating system hides them by default
Every operating system — Windows, macOS, Linux — lets you hide files and folders from the normal view. This keeps your desktop and file browser cleaner and protects system files you shouldn't accidentally delete. But sometimes you need to see what's hidden. The steps differ depending on which system you use, and it takes less than a minute once you know where to look.
Hidden files aren't encrypted or locked away. They're just marked with a hidden attribute, and toggling that attribute on or off is a standard feature built into your file browser. You don't need special software or administrator access in most cases.
Key Takeaways
- Windows shows hidden files through a checkbox in the View tab of File Explorer — no restart required.
- macOS requires a keyboard shortcut (Command + Shift + Period) in Finder, or a Terminal command if you prefer the command line.
- Linux file managers typically have a View menu option to show hidden files, though the exact location varies by desktop environment.
- Hidden files usually start with a dot (.) on Mac and Linux, or have a hidden attribute on Windows — this is how the system marks them.
Viewing hidden files in Windows
Open File Explorer and navigate to any folder. At the top of the window, click the View tab. In the ribbon that appears, look for a checkbox labeled Hidden items (in Windows 11) or Hidden files (in Windows 10). Click it once to turn it on.
Hidden files and folders will now appear in your file browser with a slightly faded icon, so you can tell them apart from regular files. This setting stays on until you turn it off again — it applies to all folders you open in File Explorer from that point forward.
If you're using an older version of Windows, the path is slightly different: go to Tools > Folder Options > View tab, then select Show hidden files, folders, and drives.
Viewing hidden files on macOS
In Finder, press Command + Shift + Period (the period key, also called a full stop). Hidden files will appear immediately in the current folder and any folder you open afterward. Press the same combination again to hide them.
If you prefer not to use the keyboard shortcut, you can open Terminal (found in Applications > Utilities) and type the command defaults write com.apple.finder AppleShowAllFiles true, then press Enter. Quit and reopen Finder for the change to take effect. To hide them again, replace true with false in that command.
On macOS, hidden files typically start with a dot — for example, .bashrc or .config. This dot prefix is how the system marks them as hidden, not a file extension.
Viewing hidden files in Linux
The method depends on which file manager you're using. In GNOME Files (the default on Ubuntu and similar distributions), open the application menu by pressing the hamburger icon (three horizontal lines) in the top right, then click Show Hidden Files. The setting persists across sessions.
In KDE Plasma (used on Kubuntu and other distributions), go to View > Show Hidden Files. In Cinnamon (Linux Mint), use View > Show Hidden Files. The exact menu location varies, but the option is always called "Show Hidden Files" or similar.
If you're working in a terminal, type ls -a to list all files including hidden ones in the current directory. Hidden files on Linux start with a dot, just like on macOS.
What hidden files actually are
Hidden files aren't a security feature — they're a visibility feature. A hidden file is just a regular file with an attribute that tells your operating system not to display it by default. You can read, edit, and delete hidden files the same way you work with any other file, as long as you can see them.
Most hidden files are configuration files that programs use to store settings. For example, .ssh is a hidden folder where your computer stores SSH keys for secure connections. .git is a hidden folder that version control software uses. These files are hidden because you rarely need to touch them, and accidentally moving or deleting them could break something.
System files on Windows are also often hidden, but they have an additional protection layer — you typically need administrator permission to modify them, even after you can see them.
When you might need to see hidden files
You might need to view hidden files when troubleshooting a program that isn't working — the configuration file might hold clues about what went wrong. You might need to access a .ssh folder to set up a secure connection to a server. You might want to see .git if you're working with version control. Or you might simply want to clean up your home directory and need to see everything that's there.
In most everyday situations, you won't need to see hidden files at all. They're hidden because you don't need them. But when you do need them, the process is straightforward and takes seconds.
Hiding files again
Once you've found what you need, you can turn off the view of hidden files using the same method you used to turn it on. In Windows, uncheck Hidden items. On macOS, press Command + Shift + Period again. In Linux, go back to View > Show Hidden Files to toggle it off.
Turning off the view doesn't delete the hidden files — it just hides them again. The files remain on your computer exactly as they were.
Frequently Asked Questions
Can I hide my own files?
Yes. In Windows, right-click a file or folder, select Properties, check the Hidden checkbox, and click Apply. On macOS and Linux, rename the file to start with a dot — for example, change myfile.txt to .myfile.txt. The file will disappear from normal view once you refresh the folder.
Are hidden files dangerous?
Hidden files themselves aren't dangerous. They're just regular files marked as hidden. However, some malware hides itself using the hidden attribute. If you see an unfamiliar hidden file in your home directory or a system folder, it's worth investigating or running a malware scan. Legitimate hidden files are almost always configuration files created by programs you installed.
What if I accidentally delete a hidden file?
It goes to your Recycle Bin (Windows) or Trash (macOS and Linux), just like any other file. You can restore it from there if you realize the mistake quickly. If you're unsure whether a hidden file is important, search for its name online — most hidden files are well-documented, and you can find out what it does.
Do I need administrator access to see hidden files?
No. Viewing hidden files is a standard user feature on all operating systems. You only need administrator access if you want to modify or delete hidden system files, which your operating system will warn you about before you proceed.