Hidden files are there by design, and you can see them with one setting change
Your operating system hides certain files to protect them from accidental deletion and to reduce clutter in your folders. These files usually start with a dot (on Mac and Linux) or have a hidden attribute (on Windows). You cannot see them by default, but you can turn on a view setting that shows them. The steps differ slightly depending on whether you use Windows, Mac, or Linux.
Hidden files are not secret or encrypted — they are just marked as hidden in the file system. System files, configuration files, and backup files often live in hidden folders. Once you know where to look, you can find and work with them like any other file.
Key Takeaways
- On Windows, open File Explorer, click the View tab, and check the box next to "Hidden items" to see all hidden files and folders.
- On Mac, press Command + Shift + Period (or Command + Shift + Full Stop) in Finder to toggle hidden files on and off.
- On Linux, use the keyboard shortcut Ctrl + H in your file manager, or run the command ls -a in the terminal to list all files including hidden ones.
- Hidden files often contain important system data, so be cautious about deleting or moving them unless you know what they do.
- You can also hide your own files using the same tools, which is useful for keeping personal documents separate from everyday folders.
Showing hidden files on Windows
Open File Explorer by pressing Windows key + E, or click the folder icon on your taskbar. Navigate to any folder where you want to see hidden files.
At the top of the File Explorer window, click the View tab. In the ribbon menu that appears, look for a checkbox labeled Hidden items (in Windows 11) or Hidden files and folders (in Windows 10). Click the checkbox to turn it on. Hidden files and folders will now appear in your view, usually shown in a lighter or faded color to distinguish them from regular files.
To hide them again, uncheck the same box. This setting applies to all folders you open in File Explorer going forward, so you only need to change it once.
Showing hidden files on Mac
Open Finder by clicking the Finder icon in your dock, or press Command + Space and type "Finder". Navigate to the folder where you want to see hidden files.
Press Command + Shift + Period (the period key, also called Full Stop). Hidden files will appear immediately in your current folder. Press the same key combination again to hide them. Unlike Windows, this toggle works on a per-folder basis in older macOS versions, though newer versions remember your preference across sessions.
If the keyboard shortcut does not work, you can also go to the Finder menu at the top of the screen, select Settings, click the Advanced tab, and check the box next to "Show all filename extensions" and "Show hidden files". This opens a preferences panel where you can make the change permanent.
Showing hidden files on Linux
The method depends on which file manager you use. In most graphical file managers (like Nautilus on GNOME, Dolphin on KDE, or Thunar on Xfce), press Ctrl + H to toggle hidden files on and off. The keyboard shortcut works the same way across most Linux distributions.
If you prefer the terminal, open a terminal window and type ls -a to list all files in the current directory, including hidden ones. The -a flag stands for "all" and shows files that start with a dot. You can also use ls -la to see more details about each file, such as permissions and modification dates.
To navigate to a specific folder in the terminal, use cd /path/to/folder, then run ls -a to see hidden files there. This method is useful if you are comfortable with command-line tools or need to work with hidden files on a remote server.
Common hidden files and what they do
On Windows, hidden system files often live in C:\Windows and C:\Program Files. You will also see hidden folders like AppData in your user directory, which stores settings and data for installed programs. The file ntuser.dat contains your Windows user profile settings.
On Mac, hidden files often start with a dot, like .DS_Store (which stores folder view settings) or .bash_profile (which contains terminal configuration). The Library folder in your home directory is also hidden by default and contains application support files and caches.
On Linux, hidden files in your home directory often include .bashrc (shell configuration), .ssh (SSH keys and settings), and .config (application configuration files). These files control how your system and programs behave.
Do not delete or move hidden system files unless you are certain what they do. Removing them can break programs or prevent your system from starting correctly. If you need to edit a hidden configuration file, make a backup copy first.
Hiding your own files
You can hide files you create using the same tools. On Windows, right-click a file or folder, select Properties, check the Hidden checkbox under Attributes, and click Apply. The file will disappear from view until you turn on the hidden files setting again.
On Mac, you cannot hide individual files through the graphical interface, but you can rename a file to start with a dot (for example, rename "notes.txt" to ".notes.txt") and it will become hidden. To unhide it, rename it back to remove the dot.
On Linux, the same rule applies: rename a file to start with a dot to hide it. In the terminal, use mv filename .filename to hide a file, or mv .filename filename to unhide it.
Searching for hidden files when you do not know the location
If you know a hidden file exists but do not know where it is, use your system's search tool. On Windows, open File Explorer, type the filename in the search box at the top right, and search will find hidden files too. You can also search for files by their extension, like *.log to find all log files.
On Mac, open Spotlight by pressing Command + Space, type the filename, and Spotlight will search hidden files. You can also use the Finder search box in the top right of any Finder window.
On Linux, use the find command in the terminal. For example, find ~ -name ".filename" searches your home directory for a hidden file called ".filename". The ~ symbol represents your home directory, and you can replace it with / to search your entire system (though this takes longer).
Frequently Asked Questions
Why are some files hidden by default?
System files are hidden to prevent accidental deletion, which could break your operating system or programs. Configuration files are hidden to reduce visual clutter in folders you use every day. Hiding these files does not make them secret — it just keeps them out of the way unless you need to access them.
Is it safe to delete a hidden file?
Only delete a hidden file if you know what it does. System files and configuration files can break your computer or programs if removed. If you are unsure, search the filename online or make a backup copy before deleting anything.
Can I hide files to keep them private?
Hiding a file makes it invisible in normal folder view, but it does not encrypt or protect it. Anyone with access to your computer can turn on the hidden files setting and see them. For actual privacy, use encryption or password protection instead.
Do hidden files take up storage space?
Yes, hidden files use the same amount of storage as visible files. Hiding a file only changes how it appears in your file manager, not its size or location on disk.
What if I accidentally hid an important file?
Turn on the hidden files setting using the steps above, find the file, right-click it, and uncheck the Hidden attribute (on Windows) or rename it to remove the leading dot (on Mac and Linux). The file will reappear in your normal folder view.