Why files get hidden and how to see them again

Hidden files are real files on your computer — they're just set to not show up in your normal folder view. Your operating system hides them by default because they're usually system files or configuration files that you don't need to touch. But sometimes you hide a file yourself by accident, or you need to see a hidden file that another program created. Unhiding a file is straightforward once you know where the setting is.

The steps differ depending on whether you use Windows, Mac, or Linux. Each system has a straightforward toggle that shows all files, including the hidden ones. Once you find the file you need, you can unhide it permanently so it shows up normally, or leave it hidden and just view it when necessary.

Key Takeaways

  • On Windows, open File Explorer, click the View tab, and check the box next to "Hidden items" to see all files at once.
  • On Mac, press Command+Shift+Period while a Finder window is open to toggle hidden files on and off when ready.
  • On Linux, use the keyboard shortcut Ctrl+H in your file manager, or right-click a file and select "Show Hidden Files" from the menu.
  • Hidden files have a dot at the start of their name on Mac and Linux, but on Windows they're marked with a small icon or attribute.
  • Once you see a hidden file, you can right-click it and change its properties to unhide it permanently.

Unhiding 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 your hidden file should be. At the top of the window, click the View tab.

In the View tab, look for a checkbox labeled Hidden items in the toolbar. Click it to turn it on. All hidden files in that folder will now appear, usually shown with a slightly faded icon to indicate they're hidden. If you don't see the View tab, you may be in a different view mode — click the three-dot menu icon on the far right and select "View" from there.

Once you can see the hidden file, right-click it and select Properties. In the Properties window, look for the Attributes section near the bottom. Uncheck the box next to Hidden, then click explore and OK. The file will now show up normally every time you open that folder, even if you turn off the "Hidden items" view.

Unhiding files on Mac

Open Finder by clicking the Finder icon in your dock, or press Command+Space and type "Finder". Navigate to the folder containing your hidden file. Press Command+Shift+Period (the period key, not the comma). Hidden files will when ready appear in the folder.

On Mac, hidden files have a dot at the beginning of their name — for example, .config or .DS_Store. Once you can see the file you're looking for, you can unhide it permanently. Right-click the file and select Get Info. In the Info window, uncheck the box next to Hidden, then close the window. The file will now appear normally in Finder.

If you want to hide files again without changing individual files, just press Command+Shift+Period a second time to toggle the view back off. This keyboard shortcut is the fastest way to peek at hidden files without permanently changing anything.

Unhiding files on Linux

The method depends on which file manager you're using. In most Linux file managers — including Nautilus (GNOME), Dolphin (KDE), and Thunar (Xfce) — press Ctrl+H to show hidden files. They will appear when ready in your current folder.

On Linux, hidden files always start with a dot, so you'll see names like .bashrc or .config. To unhide a file permanently, right-click it and look for Properties or Rename. Edit the filename and remove the dot from the beginning. For example, change .myfile to myfile. Save the change, and the file will no longer be hidden.

Alternatively, if your file manager has a menu bar, click View and look for an option like Show Hidden Files or View Hidden Files. The exact wording varies by file manager, but the result is the same.

Finding hidden files you didn't hide yourself

Sometimes hidden files appear because a program created them automatically. Configuration files, cache folders, and backup files are often hidden by default. Before you unhide something, check what it is — look at the filename and the folder it's in. If it's a system file you don't recognize, leaving it hidden is usually the right choice.

If you're looking for a specific file and can't find it even with hidden files showing, try using your system's search function. On Windows, press Windows key + S and type the filename. On Mac, press Command+Space and type the filename into Spotlight. On Linux, most file managers have a search icon in the toolbar. Searching often finds files faster than browsing, especially if you're not sure which folder they're in.

What to do if you can't unhide a file

If you try to unhide a file and the option is grayed out, you may not have permission to change that file's properties. This happens most often with system files that Windows, Mac, or Linux needs to keep hidden for security reasons. Do not force unhide these files — leave them as they are.

If the file belongs to you but you still can't change it, try right-clicking and selecting Run as administrator (Windows) or opening the Properties window again and checking if there's a lock icon you need to click (Mac). On Linux, you may need to use the terminal and the chmod command, but this is rarely necessary for regular files.

Frequently Asked Questions

Can I hide a file again after unhiding it?

Yes. On Windows, right-click the file, select Properties, check the Hidden box, and click OK. On Mac, right-click, select Get Info, and check the Hidden box. On Linux, rename the file to start with a dot. You can also use the View menu to hide all hidden files at once without changing individual files.

Why would I want to keep a file hidden?

Hidden files take up no extra space and don't clutter your folder view. If you have personal files or configuration files you don't want to see every day, hiding them keeps your workspace cleaner. System files are hidden by default because changing them can break your computer.

Is it safe to delete a hidden file?

Only if you know what it is. System files that start with a dot (Mac and Linux) or belong to Windows should never be deleted. If you hid the file yourself and remember what it is, it's safe to delete. When in doubt, move it to a backup folder instead of deleting it permanently.

Do hidden files take up storage space?

Yes, hidden files use the same amount of storage as visible files. Hiding a file only changes whether it shows up in your folder view — it doesn't compress it or save space. If you need to free up storage, you have to delete files, not hide them.

Will hidden files show up if I search for them?

Usually yes. Windows Search, Mac Spotlight, and Linux file manager search functions typically find hidden files even when they're not visible in folder view. This is why searching is often faster than browsing if you know the filename.