But do you know that Nautilus, the default file manager app for Ubuntu OS and many other GNOME-based Linux distros, has a feature that can hide files/folders with an additional different way, without renaming the file/adding a dot in its name.
For me, this feature is very useful, especially to hide files/folders that cannot be renamed. Here is an example:
As you may notice from the screenshot above, there are system folders that used by Windows OS (yes, I have multiboot OS on my system, Windows and Ubuntu/Linux OSes) on one of my hard disk partition that I used to store data files (shared files). I hate it whenever I see those files (with ugly names) on Nautilus, but since they are system files in Windows OS, renaming them as dot files won't be effective, because they will be auto-generated whenever I go to WIndows and I will see them again when I return to my Linux box.
So, I use Nautilus' different way of hiding files as solution.
.hiddenfile containing list of hidden files/folders
To use this feature, simply create a file with name "
.hidden" (dot hidden) located in a folder containing the files/folder you want to hide. Then open it in text editor and then create a list of names of the hidden files/folders.
On the screenshot above, I also make use of this feature in Nautilus to hide all system files/folders in root folder, by running simple command in Terminal:
ls / -1 | sudo tee -a /.hidden.
That's just example, of course. With
.hiddenfile, you can hide any files/folders in Nautilus, including your "important" files :)
Oh, if you want to prevent the
.hiddenfile from appearing in Windows Explorer, set the file attribute as "super hidden" (hidden system file), by running this command in DOS prompt (yes, you read it right, because this command is for MS DOS :) :
attrib +s +h [absolute\path\to\.hiddenfile]