Hidden files are files your operating system hides by default to protect system settings

A hidden file is a file or folder that your computer deliberately keeps out of sight in normal browsing. Windows, Mac, and Linux all use hidden files to store configuration settings, preferences, and system data that most users don't need to touch. When you turn on the visibility setting, these files appear alongside your regular documents and photos — they're not encrypted or locked away, just marked as hidden in the file system.

The reason they're hidden is practical: if you accidentally delete a hidden system file, you could break how a program works or cause your computer to behave strangely. By keeping them out of view, the operating system reduces the chance of accidental damage. But sometimes you need to see them — to recover a backup file, to edit a configuration, or to troubleshoot why a program isn't working.

Key Takeaways

  • On Windows, open File Explorer, click View, then check the box next to "Hidden items" to see all hidden files at once.
  • On Mac, press Command+Shift+Period while a Finder window is open to toggle hidden files on and off instantly.
  • Hidden files are marked with a dot at the start of their name on Mac and Linux, and a special attribute on Windows.
  • Be cautious when deleting or editing hidden files — many are system files your computer needs to run properly.

Showing hidden files in Windows

In Windows, the quickest way is through File Explorer. Open File Explorer (the folder icon on your taskbar), then look at the top menu bar. Click the View tab, and you'll see a checkbox labeled "Hidden items" — click it to turn it on. All hidden files and folders will now appear in your normal file browsing, usually shown slightly faded or with a different icon to remind you they're hidden.

If you're using an older version of Windows, the menu might look slightly different. In Windows 10 and earlier, you may need to go to View > Options > Change folder and search options, then click the View tab and select "Show hidden files, folders, and drives." Once you've turned this on, it stays on until you turn it off again — the setting applies to all folders you browse.

Showing hidden files on Mac

On a Mac, the keyboard shortcut is faster than hunting through menus. Open Finder (the blue smiley-face icon in your dock), then press Command+Shift+Period (that's the period key, not a comma). Hidden files will instantly appear in the Finder window. Press the same keys again to hide them once more. This toggle works in any Finder window, so you can turn them on and off as needed without changing a permanent setting.

If you prefer using the menu, you can also go to Finder > Settings, click the Advanced tab, and check "Show all filename extensions" and "Show hidden files" — though the keyboard shortcut is much faster for a quick look.

Showing hidden files on Linux

Linux file managers vary depending on which desktop environment you're using, but most follow a similar pattern. In GNOME Files (the default on Ubuntu), open the file manager and press Ctrl+H to toggle hidden files on and off. In KDE Plasma, go to View > Show Hidden Files. In other file managers, check the View menu for a "Show Hidden Files" or "View Hidden Files" option.

On the command line, you can list hidden files by typing ls -a in the terminal, which shows all files including those starting with a dot. This is useful if you're troubleshooting or looking for a specific configuration file.

How to recognize a hidden file once you see it

On Mac and Linux, hidden files have a dot (period) at the very beginning of their name — for example, .bashrc or .config. This dot is part of the filename itself, not just a label. On Windows, hidden files don't have a special character in their name, but they're marked with a hidden attribute that you can see in the file's properties.

When you first turn on hidden file visibility, you may see many files and folders you've never noticed before. This is normal. System files like .git (used by programmers), .ssh (used for secure connections), and .cache (temporary data) are common hidden items. Application settings folders are also usually hidden — for example, .config on Linux or Library on Mac.

Opening and editing a hidden file

Once you can see a hidden file, you open it the same way you'd open any other file. Double-click it, or right-click and choose "Open with" to pick a specific program. If it's a text file (like a configuration file with a .txt, .conf, or .cfg extension), you can edit it in any text editor — Notepad on Windows, TextEdit on Mac, or gedit on Linux.

Before you edit a hidden file, especially a system file, it's wise to make a copy first. Right-click the file, select Copy, then paste it in the same folder with a different name (like adding "_backup" to the end). That way, if something goes wrong, you have the original to restore. Some hidden files are critical to how your computer works, so changing them carelessly can cause problems.

Hiding files again after you're done

Once you've found what you needed, you can turn hidden files back off using the same method you used to turn them on. In Windows, uncheck "Hidden items" in the View tab. On Mac, press Command+Shift+Period again. On Linux, press Ctrl+H or go back to the View menu. The hidden files won't disappear from your computer — they'll just be hidden from view again.

Turning off the visibility doesn't affect the files themselves or any changes you made to them. It only changes what you see in your file browser. If you edited a hidden configuration file, those changes remain in effect whether the file is visible or not.

Frequently Asked Questions

Can I accidentally delete a hidden file and break my computer?

Yes, if you delete certain system hidden files. That's why they're hidden in the first place. Before deleting any hidden file, search online for its name to understand what it does. If it's a system file (like anything in a Windows System32 folder), don't delete it unless you're following specific troubleshooting steps from a trusted source.

Why does my file have a dot at the start of its name?

On Mac and Linux, any file starting with a dot is automatically hidden by the operating system. This is a naming convention, not a special property. If you rename a file to remove the dot, it will become visible. If you add a dot to the start of a filename, it will become hidden.

Is there a way to hide my own files without using the system hidden attribute?

Yes. On Mac and Linux, you can rename your file to start with a dot (for example, rename "notes.txt" to ".notes.txt"). On Windows, you can right-click a file, select Properties, check the "Hidden" checkbox, and click Apply. This hides your personal files without touching system settings.

What if I turned on hidden files and now I'm seeing too many things I don't recognize?

This is normal — your computer stores a lot of configuration and cache files behind the scenes. You don't need to do anything with them. Just turn hidden files back off if the clutter is distracting. You can always turn them back on later if you need to find something specific.