How to Stop Ubuntu from Automatically Showing Hidden Files

The Cluttered Directory

In Ubuntu Linux, files and folders that begin with a period (e.g., `.config`, `.bashrc`) are considered “hidden.” These files typically store application settings, system configurations, and cache data. By default, the Nautilus file manager hides these files to provide a clean, user-friendly view of your Documents or Downloads. However, if you press `Ctrl+H` to view a specific hidden file, Nautilus sometimes “remembers” this state globally. Suddenly, every folder you open is overwhelmingly cluttered with hundreds of configuration files, making it incredibly difficult to find your actual work documents.

Restoring the Clean View

To restore a clean browsing experience and stop Ubuntu from automatically showing hidden files every time you open the file manager, you must disable the global hidden-file visibility toggle.

The simplest way to fix this is via the graphical interface. Open the Files application (Nautilus). Look at the top-right corner of the window. You will see an icon with three horizontal lines (often called a “hamburger menu”). Click this menu icon. In the dropdown list that appears, look for the option labelled Show Hidden Files. If there is a checkmark next to it, click the option to remove the checkmark. The view will instantly refresh, hiding all dot-files. If the issue persists across reboots, open your terminal (Ctrl+Alt+T) and force the setting via the dconf registry by typing: gsettings set org.gtk.Settings.FileChooser show-hidden false and pressing Enter. Your file manager will now prioritize a clean, uncluttered layout.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.