Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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

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 https://help.ubuntu.com/community/EncryptedHome.

share|improve this answer
    
No no no no no no no. –  Rinzwind Jan 20 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 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 at 15:50
    
He never said it was essential to his software. –  PyRulez Jan 20 at 15:52

Your Answer

 
discard

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.