Show Hidden Files: Keyboard Shortcuts for Windows, Mac, Linux
In this article
Yes, you can show hidden files with a keyboard shortcut on most operating systems: on Windows File Explorer press Alt+V then H then H again (or Ctrl+Shift+Period in some apps), on macOS Finder press Command+Shift+Period, and on many Linux file managers press Ctrl+H. This article explains the exact keystrokes for each system, how the hidden attribute works, and what to do when the shortcut doesn't respond.
Why Files Are Hidden in the First Place
Hidden files are not secret or encrypted—they are simply marked with a special attribute that tells the file manager not to display them by default. On Windows, the attribute is called Hidden; on Unix-like systems (macOS, Linux), a file or folder whose name starts with a dot (.) is treated as hidden. The purpose is to reduce clutter and prevent accidental modification of critical system files, configuration files, and application data that the average user rarely needs to see. For example, the .git folder in a programming project or the AppData folder on Windows contain settings that, if moved or deleted, could break an application.
Windows: File Explorer and Dialog Boxes
In Windows 10 and Windows 11, the fastest keyboard-only method in File Explorer is:
- Press Alt+V to open the View menu.
- Press H to open the “Show/hide” submenu.
- Press H again to toggle “Hidden items” on or off.
This works in the main File Explorer window. However, in Open/Save dialog boxes (e.g., when attaching a file in a browser or an app), the Alt+V shortcut may not work. In those dialogs, you can often right-click the file list area and select “Show hidden files” from the context menu, but there is no universal keyboard shortcut. Some third-party file managers (like Directory Opus or Total Commander) have their own shortcuts, but the built-in Windows method is the one above.
macOS Finder: The Dot-Toggle
On macOS, the hidden attribute is based on the dot prefix. To toggle the display of hidden files in Finder, press Command+Shift+Period (⌘⇧.). This works in any Finder window and also in the Open/Save dialog boxes. The shortcut toggles the visibility of all dot-files, including the user’s Library folder (which is hidden by default in recent macOS versions). Note that this only affects the current Finder session—it does not permanently change the system setting. If you close and reopen Finder, the hidden files will be hidden again unless you use the shortcut again.
Linux File Managers: Ctrl+H and Beyond
On most Linux desktop environments, the default file manager (GNOME Files, Nautilus, Thunar, Dolphin, etc.) uses Ctrl+H to toggle hidden files. This is a de facto standard across many distributions. In the terminal, you can list hidden files with ls -a (or ls -A to omit the . and .. entries). Some file managers also have a menu option under View, but Ctrl+H is the quickest. If you are using a different file manager, check its documentation—some use F6 or a different key, but Ctrl+H is the most common.
What to Do When the Shortcut Doesn’t Work
If the keyboard shortcut does nothing, try these steps in order:
- Make sure the file manager window is focused (click on it once).
- On Windows, ensure you are pressing Alt+V, not Ctrl+V (which pastes). If the View menu doesn’t open, try pressing the Alt key first and then V.
- On macOS, check if the Finder is the active application. If you are in a different app’s Open dialog, the shortcut may still work, but if not, click inside the dialog first.
- On Linux, some file managers have hidden files disabled in their preferences—the shortcut might be disabled. Look under Edit → Preferences → Views for a “Show hidden files” option.
- If you are using a remote desktop or virtual machine, the shortcut may be intercepted by the host OS. Try the mouse method (View menu or right-click) as a fallback.
If the shortcut still fails, you can permanently show hidden files via the folder options (Windows) or a terminal command (macOS/Linux), but the keyboard toggle is the intended quick method.
Show Hidden Files Permanently vs. Temporarily
The keyboard shortcuts described above are temporary toggles—they only affect the current session or window. If you want to permanently show hidden files, you have to change a system setting:
- Windows: Open File Explorer → View → Options → Change folder and search options → View tab → select “Show hidden files, folders, and drives” → OK.
- macOS: Open Terminal and run
defaults write com.apple.finder AppleShowAllFiles YESthen restart Finder (or log out and in). To revert, change YES to NO. - Linux (GNOME): Open Files → Preferences → Views → toggle “Show hidden files” (or run
gsettings set org.gtk.Settings.FileChooser show-hidden truefor file chooser dialogs).
Permanently showing hidden files can be useful for advanced users, but it also increases the risk of accidentally deleting or moving important system files. The temporary shortcut is safer for everyday use.
Common Misconceptions and Safety Notes
A common misconception is that hidden files are invisible to programs—they are not. Any program can read a hidden file if it knows the path. Hiding is purely a user-interface convenience, not a security measure. Also, on Windows, the hidden attribute can be combined with the system attribute, making the file even less visible, but the same keyboard shortcut reveals both. When you show hidden files, be cautious when deleting or moving anything—especially in folders like AppData (Windows), Library (macOS), or .config (Linux). These contain application settings, and removing them may cause apps to reset or malfunction. If you are just looking for a file, use the search function instead of manually browsing hidden folders.
Frequently Asked Questions
Does the shortcut work in all Windows apps?
No. The Alt+V, H, H shortcut works in File Explorer, but in other apps (like Notepad’s Open dialog) it may not. In those cases, right-click inside the file list and choose “Show hidden files” if available, or use the File Explorer to navigate to the hidden file and then copy its path.
Why can’t I see hidden files even after pressing the shortcut?
If you pressed the shortcut and nothing changed, the file manager might be set to not show hidden files at all (e.g., Windows “Don’t show hidden files” option). Check the folder options as described above. Also, some files are marked as “system” and may require unchecking “Hide protected operating system files” in Windows to appear.
Is there a shortcut to hide files again?
Yes, the same shortcut toggles the visibility. Press it again to hide the files. On Windows, the Alt+V, H, H sequence is a toggle; on macOS and Linux, the shortcut is also a toggle.
Can I make hidden files show only in certain folders?
Not with a keyboard shortcut. The toggle applies globally to the current view. However, you can manually set a folder to not be hidden by removing the hidden attribute (Windows) or renaming it without the dot (macOS/Linux).
Does showing hidden files affect system performance?
No. The file manager simply displays more entries; it does not change how files are stored or accessed. The only impact is visual clutter.