5

I have searched a lot about that & the only way I found is to create a file named .hidden & put the file names I want to hide in separated by a break. This method seems to be not working for some reason even for 1 file.

Here I add the Exams.txt file as the one I want to hide

enter image description here

then press Ctrl+H and f5 & that's what I get, only .hidden file disappears.

enter image description here

So, any ideas? am I doing something wrong? Does this method requires something to be installed first that is not installed by default ? Or this is deprecated method that no longer works?

n0krashy
  • 109

2 Answers2

2

OK I have solved it guys thanks everybody.

It seems like my problem was HOW I create the .hidden file.

it doesn't work if I copied any file (instead of creating a new one) & renamed it to .hidden and delete it's content & put the files names I want to hide in it.

I used to copy a .txt file & do that & that was my problem apparently.

Seems like I MUST create a new file using the terminal

touch .hidden

command to work.

Sorry for the disturbance.

n0krashy
  • 109
0

When you name your files simply put a . in front of the name to make it hidden. For example:

ThisFileIsNotHidden
.ThisFileIsHidden

In Ubuntu 18.04 controlling display of hidden files is no longer in the preferences menu as it was in Ubuntu 16.04. It's been moved to a drop down menu on the top right corner of the window:

Nautilus 18.04 hidden files.gif

This setting is "persistent" and will the same setting across reboots.


Besides the default Nautilus method you can use a Python extension called "Nautilus Hide". You can install it using:

sudo apt install nautilus-hide

As OP stated it's not working out of Ubuntu Repositories so you install it the old-fashioned way:

$ git clone https://github.com/brunonova/nautilus-hide.git
$ mkdir build
$ cd build
$ cmake {path to nautilus-hide}
$ make
$ sudo make install

Verify installation

Use this command to verify it's installed:

$ ll //usr/share/nautilus-python/extensions/
total 32
drwxr-xr-x 2 root root 4096 May 15 04:47 ./
drwxr-xr-x 3 root root 4096 Feb 20 18:36 ../
-rw-r--r-- 1 root root 5165 Dec 28  2015 nautilus-admin.py
-rw-r--r-- 1 root root 5479 Apr  6 17:21 nautilus-admin.pyc
-rw-r--r-- 1 root root 5007 Oct 24  2015 nautilus-hide.py