Hidden files are there by default — you just need to turn on the view

Hidden files exist on every computer. Your operating system hides them by default to prevent accidental deletion of system files that keep your computer running. When you need to see them — to find a configuration file, recover a backup, or organize files in a folder — you can turn on the view in a few clicks. The steps differ between Windows, Mac, and Linux, but the principle is the same: you are not creating or unlocking anything, just changing what your file manager displays.

Hidden files remain hidden by default when you restart your computer unless you change the setting permanently in your file manager preferences. Most people only need to see them occasionally, so the temporary toggle is usually enough. But if you work with configuration files or backups regularly, making the change permanent saves time.

Key Takeaways

  • Hidden files are marked with a dot at the start of the filename on Mac and Linux, or with a hidden attribute on Windows.
  • On Windows 11 and 10, open File Explorer, click the View tab, and check the box next to "Hidden items" to see them.
  • On Mac, press Command + Shift + Period (.) in Finder to toggle hidden files on and off instantly.
  • On Linux, the method depends on your file manager — GNOME Files uses Ctrl + H, while Nautilus and Dolphin have a View menu option.
  • Hidden files remain hidden by default when you restart your computer unless you change the setting permanently in your file manager preferences.

How to show hidden files on Windows 10 and 11

Open File Explorer by pressing Windows key + E, or click the folder icon on your taskbar. Navigate to the folder where you want to see hidden files. At the top of the window, click the View tab. In the toolbar that appears, look for a checkbox labeled Hidden items — click it to turn it on. Any hidden files in that folder will now appear, usually shown in a lighter shade of gray to distinguish them from regular files.

If you want hidden files to stay visible every time you open File Explorer, you can make this permanent. In the View tab, click Options (or Change folder and search options on some versions). A window titled "Folder Options" will open. Click the View tab inside that window. Under "Hidden files and folders," select the radio button next to Show hidden files, folders, and drives. Click Apply, then OK. From then on, hidden files will be visible by default.

How to show hidden files on Mac

On Mac, the fastest way is a keyboard shortcut. Open Finder and press Command + Shift + Period (the period key, also called a full stop). Hidden files will appear instantly in the folder you are viewing. Press the same keys again to hide them. This toggle works in any Finder window and is the quickest method if you only need to see hidden files occasionally.

If you want hidden files visible all the time, you can use Terminal. Open Terminal (search for it in Spotlight by pressing Command + Space, typing "Terminal," and pressing Enter). Type this command exactly: defaults write com.apple.finder AppleShowAllFiles -bool true and press Enter. Then type killall Finder and press Enter. Finder will restart, and hidden files will now be visible by default. To reverse this, replace "true" with "false" in the first command.

How to show hidden files on Linux

The method depends on which file manager your Linux distribution uses. Most common distributions use GNOME Files (also called Nautilus). Open your file manager and press Ctrl + H — this toggles hidden files on and off instantly. The shortcut works the same way each time you open a new window.

If you use a different file manager like Dolphin (on KDE Plasma) or Thunar (on Xfce), look for a View menu at the top of the window. Click it and look for an option like Show Hidden Files or View Hidden Files. Some file managers also let you set this permanently in Preferences or Settings — look for a "Files" or "View" section and check the box next to hidden files.

Why files are hidden and what you might find

Operating systems hide files to protect you from accidentally changing or deleting something that makes your computer work. System configuration files, cache folders, and backup data are typically hidden. On Mac and Linux, any filename starting with a dot (like .bashrc or .config) is automatically hidden. On Windows, files have a "hidden" attribute that the system sets independently of the filename.

When you show hidden files, you might see folders like .git (used by programmers), .ssh (containing security keys), AppData on Windows (where programs store settings), or Library on Mac (where system and program data live). Most of the time you will not need to touch these. But if you are recovering a backup, finding a configuration file, or troubleshooting a program, knowing how to see them is essential.

What to do if you accidentally delete a hidden file

If you delete a hidden file by mistake, your first step is to check your Recycle Bin (Windows) or Trash (Mac and Linux). Open it and search for the filename you deleted. If you find it, right-click and restore it to its original location. This works for most accidental deletions within the last few days.

If the file is not in Recycle Bin or Trash, or if you emptied it already, recovery becomes harder. System files that were deleted may cause your computer to behave strangely or fail to start. If that happens, you may need to reinstall your operating system or restore from a backup. This is why the default behavior — hiding these files — exists in the first place. If you are working with hidden files regularly, take extra care when deleting anything, and keep a recent backup of your entire system.

Showing hidden files in specific programs

Some programs have their own file dialogs that do not respect your operating system's hidden file settings. For example, when you click "Open" in Microsoft Word or Adobe Photoshop, you see a file browser that may hide files even if you have turned on the view in your main file manager.

In most program file dialogs, look for a menu or settings icon — often three dots or lines — and search for an option like Show hidden files or View options. Some programs do not offer this option at all. If you need to open a hidden file in a program that does not show them, you can navigate to it in your main file manager, right-click it, and choose Open with to select the program you want.

Frequently Asked Questions

Are hidden files dangerous to look at?

No. Looking at hidden files is completely safe. The danger comes from editing or deleting them without knowing what they do. If you are only browsing to find a specific file, you cannot cause harm just by viewing them. Treat them with caution if you plan to change or remove anything.

Will showing hidden files slow down my computer?

No. Changing the view setting has no effect on your computer's speed or performance. It only changes what your file manager displays on screen. Your system processes the same files whether they are hidden or visible.

Can I hide files that are not system files?

Yes. On Windows, right-click any file, select Properties, check the "Hidden" box, and click OK. On Mac and Linux, rename the file to start with a dot — for example, change "notes.txt" to ".notes.txt". The file will then be hidden by default and only visible when you toggle the hidden view on.

What if I cannot find the View tab in File Explorer?

Make sure you are in File Explorer, not a web browser. If the ribbon is collapsed, click the up arrow at the top right of the window. On older versions of Windows, the menu bar may be hidden — press Alt to make it appear, then click View.

Do hidden files take up storage space?

Yes. Hidden files are real files that occupy storage just like visible ones. Hiding them only changes whether your file manager shows them — it does not compress them or move them to a different location.