Hidden files are turned off by default — here's how to turn them on
Your operating system hides certain files and folders to protect them from accidental deletion. These are usually system files, configuration files, and files that start with a dot (.) on Mac and Linux. If you need to see or work with a hidden file, you can turn on visibility in your file manager. The steps differ depending on whether you use Windows, Mac, or Linux.
Most people need to show hidden files when troubleshooting, backing up settings, or accessing a configuration file for a program. Once you turn on the setting, hidden files stay visible until you turn it off again — the change applies to your entire file manager, not just one folder.
Key Takeaways
- Windows users can show hidden files through File Explorer's View menu or by changing a folder option in Settings.
- Mac users can press Command+Shift+Period to toggle hidden files on and off in Finder.
- Linux file managers have a View menu option to show hidden files, though the exact location depends on which file manager you use.
- Hidden files remain visible after you turn them on until you manually turn them off again.
- Hidden files are marked with a dot prefix on Mac and Linux, and have a "Hidden" attribute on Windows.
Show hidden files on Windows
Open File Explorer and click the View tab at the top of the window. On the right side of the ribbon, you will see a checkbox labeled Hidden items. Click it to turn on visibility for hidden files and folders. They will now appear in your file listings, usually shown with a slightly faded icon to distinguish them from regular files.
If you do not see the View tab, you may be in a different view mode. Click the folder icon in your taskbar to open File Explorer, then look for View in the menu bar. If you still cannot find it, you can also reach this setting through Settings: open Settings, go to Privacy & Security on the left, scroll down to Files, and toggle Show hidden files to on.
Once hidden files are visible, they stay that way across all folders until you uncheck the box again. You can safely view them without risk — simply seeing a hidden file does not change anything on your system.
Show hidden files on Mac
Press Command+Shift+Period while Finder is open and in focus. This keyboard shortcut toggles hidden files on and off instantly. You will see hidden files appear immediately, usually with a lighter or grayed-out appearance. Press the same keys again to hide them.
This shortcut works in any Finder window and applies to all folders you browse. If you prefer not to use the keyboard, you can also go to the Finder menu at the top left, select Settings, click the Advanced tab, and check the box next to Show all filename extensions — though this shows extensions rather than hidden files themselves. For hidden files specifically, the keyboard shortcut is the fastest method.
Hidden files on Mac typically start with a dot, like .bashrc or .DS_Store. Once you toggle them visible, you can browse and open them like any other file. The setting persists until you press Command+Shift+Period again.
Show hidden files on Linux
The steps depend on which file manager you use. In Nautilus (the default on GNOME), open the file manager and press Ctrl+H to toggle hidden files on and off. In Dolphin (the default on KDE), click the View menu and select Show Hidden Files. In Thunar (the default on Xfce), go to View and check Show Hidden Files.
If you are not sure which file manager you have, open it and look at the window title or menu bar. Most Linux distributions use one of the three above. Hidden files on Linux start with a dot and are often configuration files for programs or system settings. Once you show them, they remain visible until you toggle the setting off.
If you use a different file manager, the option is almost always in the View menu. Look for "Hidden", "Show Hidden Files", or a similar phrase. You can also right-click in an empty area of the file manager window to see if a context menu offers the option.
Why files are hidden and when you need them
Operating systems hide files to prevent accidental changes to system configuration. A hidden file is usually one that controls how a program behaves, stores user settings, or manages system functions. Deleting or editing these files by mistake can break a program or cause unexpected behavior.
You typically need to see hidden files when you are backing up program settings, troubleshooting a program that is not working, editing a configuration file, or recovering a file you intentionally hid. Most everyday computer use does not require you to access hidden files at all. If you turned them on to find something specific and are done, you can turn them off again to keep your file manager less cluttered.
What to do if you accidentally delete a hidden file
If you delete a hidden file and something stops working, your first step is to undo the deletion. Press Ctrl+Z on Windows or Linux, or Command+Z on Mac, immediately after the deletion. This restores the file to its original location if you have not emptied the trash or recycle bin.
If undo does not work, check your trash or recycle bin. On Windows, open the Recycle Bin on your desktop, find the file, right-click it, and select Restore. On Mac, open Trash from the Dock, find the file, right-click it, and select Put Back. On Linux, open your file manager's trash folder (usually in a sidebar), find the file, and move it back to its original location.
If the file is no longer in trash, you may need to reinstall the program that uses it. Most programs recreate hidden configuration files when they start up if those files are missing. Restart the program and see if it functions normally. If problems persist, uninstall and reinstall the program completely.
Frequently Asked Questions
Are hidden files dangerous to look at?
No. Simply viewing a hidden file does not change anything on your system. The danger comes only from editing or deleting them without knowing what they do. If you are only browsing to find a specific file, you are safe.
Can I hide files myself?
Yes. On Windows, right-click a file, select Properties, check the Hidden box, and click Apply. On Mac and Linux, rename the file to start with a dot (for example, change myfile.txt to .myfile.txt). The file will disappear from view until you show hidden files again.
Do hidden files take up storage space?
Yes. Hidden files are stored on your drive just like regular files and count toward your total storage use. Hiding a file only changes whether you see it in your file manager — it does not compress it or move it.
Will showing hidden files slow down my computer?
No. Turning on visibility for hidden files has no effect on performance. Your file manager may take a moment longer to load a folder with many hidden files, but the difference is not noticeable in most cases.
What if I cannot find the View menu?
On Windows, make sure File Explorer is open and click in the window to give it focus. The View tab should appear in the menu bar at the top. On Mac, click the Finder menu at the top left of the screen. On Linux, click the menu bar or hamburger icon (three horizontal lines) in your file manager window.