Recently, a colleague asked me how I could hide files in Ubuntu. At first I told him that it was best to rename the file or folder that he wanted to hide by adding a dot in front of it, but, as for almost everything related to Linux, there is software that can do all this for us. In the case of the Nautilus file explorer, which comes with the standard version of Ubuntu, this extension is called Nautilus Hide.
Nautilus Hide it hides files or folders without renaming them, something it does by adding them to a file called ".hidden" that can be used by most file managers. We could do this manually, but this extension will save us time and be more productive. We explain everything you need to know after the cut.
How to hide files with Nautilus Hide
Since this file hiding extension is in Ubuntu's default repositories, installing it is as simple as opening a terminal and typing the following command:
sudo apt install nautilus-hide
Once installed, we will have to restart nautilus by typing "nautilus -q" without the quotes.
Keep in mind that the version that is in the official repositories at the time of writing these lines does not refresh the folders automatically, so you have to press F5 for the changes to take effect. If we want this to be automatic, we will have to install the latest version of Nautilus Hide, available from this link, or wait for the update to be uploaded to the Ubuntu repositories.
The operation of Nautlius Hide is very simple: to hide any file, we will secondary click on it and select «Hide File» u "Hide file". Making it available again is a bit more complicated: first we will press Ctrl + H to show the hidden files, then we will right click on the file and then we will select "Unhide" or "Show". Finally, we press Ctrl + H again to hide the hidden files again.
How about Nautilus Hide?