The Invisible Clutter
In Ubuntu Linux, hiding a file or a folder is incredibly simple: you just place a single period (.) at the very beginning of the filename. This completely hides the file from standard directory listings (like the basic ls command). Developers and applications use this “dotfile” trick constantly to hide massive configuration folders (like .cache or .npm) directly in your home directory. If your server is running out of space but your standard directory searches show nothing, the data is likely buried inside these invisible folders. You must instruct the filesystem to explicitly hunt for files beginning with a dot.
Using the find Command with -name
The Linux find command utilizes the -name flag combined with a wildcard character to isolate hidden documents.
- Open your Terminal application (Ctrl + Alt + T) or log into your server via SSH.
- To search the entire
/home/user/directory for exclusively hidden files and folders, type the following command exactly: sudo find /home/user/ -name ".*"- Press Enter and provide your administrator password.
Filtering by Type
The command above will output a massive list of both hidden files and hidden directories. If you only want to find hidden folders (which usually contain the bulk of the cached data), you can add the type flag to the command: sudo find /home/user/ -type d -name ".*". This will filter out individual text files and only display the invisible directories, allowing you to quickly identify which background application is secretly hoarding your storage space.