Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 13.10 and have a hidden folder. Using the privacy app in the system settings I have excluded this folder from the dash this works well enough although I would prefer to be able to exclude all hidden files/folders from the dash rather than excluding based on specific folders.

The problem though is that files in this hidden folder still show up in Nautilus' recent files. I don't really want to disable that feature altogether but can I prevent it showing hidden files only? (I would have assumed that should be default behaviour?)

share|improve this question

Nautilus has a special feature for this. Create a file with name .hidden in a directory and put a list of the files you want to hide in this file.

You can use a command like this to put them in that file:

cd ~/Downloads/
touch .hidden
ls . -1 * | sudo tee -a ~/.hidden

would put all files in the Downloads directory in the file .hidden and all files will disappear from view. Adjust it to your liking ;)

1 caveat: I have not tested this with the recent files but I would consider it a bug if it did not work like this ;)

share|improve this answer
It doesn't work like that... maybe a bug then? – db579 Dec 10 '14 at 13:24

I do not know how you hid them, but there is another way. Simply edit the name and put a "." in front of it. For example, if the name is "test.txt", then rename it to ".text.txt". Same thing for folder. If it is still there, press ctrl-h.

Note: Hiding Files is just a convient way of not displaying files that are only for internal purposes. They are easy to find. If you want to secure your files, see

share|improve this answer
No no no no no no no. – Rinzwind Jan 20 '14 at 15:43
@Rinzwind What is the problem? Aren't I correct in saying that the "." does not in anyway encrypt it. The link is from the official Ubuntu help, in case actually encrypting it is what they want. – PyRulez Jan 20 '14 at 15:49
No, changing the file name is wrong. Adding a dot to a file name can mess things up if that file depends on software to function. – Rinzwind Jan 20 '14 at 15:50
He never said it was essential to his software. – PyRulez Jan 20 '14 at 15:52
Yes a "." hides them, but they still appear in recent files - that is the problem – db579 Dec 10 '14 at 13:24

It seems that there is no management mechanism for Nautilus' recent files. activity-log-manager only works for Dash.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.