To manually hide files on Linux one typically has to either prefix the filename using a dot (.)
or suffixing a tilde (~)
but now there is an extension that does the adding for you more easily. It’s called Nautilus Hide.
Nautilus Hide is an open source Python-based extension with which you can hide files without renaming them. The awesome feature about the extension is that it adds the hide/unhide options to the right-click menu of the Nautilus file manager; no extra scripting or manual tweaks required!
Features in Nautilus Hide
- Free to download and use.
- Open source with source code available for contributions on GitHub.
- Adds hide/unhide options to Nautilus’ right-click menu.
At present there are no pre-build binaries, all you have to do is compile it from source using following commands.
$ git clone https://github.com/brunonova/nautilus-hide.git $ mkdir build $ cd build $ cmake {path to nautilus-hide} $ make $ sudo make install
If Nautilus is running, restart it with the following command:
$ nautilus -q
Nautilus Hide – How It Works
Just in case you were wondering how Nautilus Hide works, the developers explain it on the GitHub page so I will just quote them below:
Some file managers, like Nautilus, offer an alternative way of hiding files: you create a text file that lists, line-by-line, the names of all the files you want to hide and save it in that folder with the name “.hidden”. The next time you open or refresh that folder, those files will not be visible.
So, that’s how it works! I guess people who knew how Linux handles hiding files before now must have devised a method like the above for themselves but they didn’t share the idea with the world. Thanks to the open source community, that’s a reality now.
What’s your take on the Nautilus Hide extension? Did you already have a hiding/unhiding solution? The comments section is below.
I get an error:
jon@jon-Z68MA:~$ git clone https://github.com/brunonova/nautilus-hide.git
Cloning into ‘nautilus-hide’…
remote: Counting objects: 296, done.
remote: Total 296 (delta 0), reused 0 (delta 0), pack-reused 296
Receiving objects: 100% (296/296), 55.24 KiB | 0 bytes/s, done.
Resolving deltas: 100% (133/133), done.
jon@jon-Z68MA:~$ mkdir build
jon@jon-Z68MA:~$ cd build
jon@jon-Z68MA:~/build$ cmake ..
CMake Error: The source directory “/home/jon” does not appear to contain CMakeLists.txt.
Specify –help for usage, or press the help button on the CMake GUI.
jon@jon-Z68MA:~/build$ make
make: *** No targets specified and no makefile found. Stop.
jon@jon-Z68MA:~/build$ cmake ..
Here are two links that might help:
-> https://stackoverflow.com/questions/36989494/cmake-error-cmake-dont-find-source-directory-or-cmakelists-txt-installing-ogr
-> https://stackoverflow.com/questions/24153845/opencv-ubuntu-12-04-cmake-error-source-directory-does-not-appear-to-contain-cm
I had the same issue, and the links below helped me.
But the short version of that was: instead of using “cmake ..” I used “cmake {path to nautilus-hide}”.
And I got an issue missing xdotool, so a quick apt to install that one and I got to install nautilus-hide.