In Linux and Unix-like operating systems, system configuration files, application data stores, and cache directories stored inside your Home folder begin with a leading period or dot (such as .bashrc, .config, or .local). By default, the Ubuntu file manager (Nautilus / Files) conceals these “dotfiles” to keep your daily desktop workspace clean and prevent accidental deletion of critical settings. However, when editing environment variables, configuring software themes, or clearing residual cache, revealing hidden files is necessary.
Why Are Dotfiles Hidden by Default?
Hiding system dotfiles serves practical operating system functions:
- Prevents Unintended Modification: Shields vital system scripts and application runtime registries from accidental moves or deletion.
- Reduces Visual Clutter: Keeps your primary Home directory focused on personal folders like Documents, Downloads, Music, and Pictures.
- Standard Convention: Adheres to decades-old Unix naming standards where any file starting with a dot is treated as non-public configuration data.
Method 1: The Instant Keyboard Shortcut (Ctrl + H)
The fastest and most widely used method to toggle hidden files on the Ubuntu desktop:
- Open the Files manager.
- Navigate to your Home folder or any directory you wish to inspect.
- Press Ctrl + H on your keyboard.
All hidden files and folders will appear instantly with slightly faded or semi-transparent icons. Pressing Ctrl + H a second time toggles them back out of sight immediately.
Tip: The Ctrl + H keyboard shortcut functions across almost all Linux desktop environments, including GNOME, KDE Plasma (Dolphin), XFCE (Thunar), and MATE (Caja).
Method 2: Toggle Hidden Files via the Nautilus Menu
If you prefer using mouse navigation:
- In the Files manager window, look at the top-right toolbar.
- Click the hamburger menu icon (the three horizontal lines or view options menu).
- Check the box labelled Show Hidden Files.
Viewing Hidden Files in Terminal
When working within the command line, standard directory listings (ls) also suppress dotfiles. To view all files including hidden ones:
ls -la
The -a (all) flag reveals every dotfile along with exact file permissions, file sizes, and modification timestamps. Mastering these view toggles ensures you can locate and tweak configuration files effortlessly.