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.

Possible Duplicate:
How can I hide folders without changing their names?

I want to hide some folders that I don't really want to hide all those folders that I don't use. Since system is using them I can't really rename them to add . in front of them. Is there any other way?

share|improve this question
add comment

marked as duplicate by RolandiXor, Rinzwind, Jorge Castro, Stefano Palazzo Jun 30 '11 at 8:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 9 down vote accepted

For hiding things in Nautilus (and maybe other graphical browsers) when you can't rename, you can create a file called .hidden in the current directory and list the paths you don't want shown.

For example if I have a direcory with subdirectories {a..f} and a .hidden containing:

b
c

ls -l shows everything still:

drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 a
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 b
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 c
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 d
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 e
drwxr-xr-x 2 oli oli 4096 2011-06-29 23:02 f

But Nautilus only shows:

enter image description here

share|improve this answer
    
Thanks, I will try now. –  Qmal Jun 29 '11 at 22:10
    
I found a problem for myself. I cannot create .hidden file inside root directory because it is saying that I don't have permission, although I am logged as admin. What can I do? –  Qmal Jun 29 '11 at 22:17
2  
Ah, I did some research and did it in terminal, thanks for your help! –  Qmal Jun 29 '11 at 22:29
add comment

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