Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have plenty of files in a folder with extension of .dep, I want to hide these files. But I don't want to change their names such as adding a dot ahead of them. What would be the best way to do this?


share|improve this question
up vote 0 down vote accepted

You can create a file in that folder called ".hidden" and put any filenames you want to hide in there. I don't believe it supports wildcards, but you can use a script to add the filenames every so often:

See this answer: How can I hide directories without changing their names?

share|improve this answer
Great, Thanks a lot! – Daniel Dec 3 '12 at 18:36
ls *.<ext> >> .hidden

Simple as that

share|improve this answer

You cannot hide file in any other way on linux.

You may want to add a . to the folder containing the .dep files unless there are other files you want to access in the folder.

share|improve this answer
OOPS, okay! I have other files in the folders. – Daniel Dec 3 '12 at 18:14

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.