Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 want to delete many configuration folder in my home user folder but I can't figure out how to delete them. How can I delete a hidden folder?

share|improve this question
up vote 10 down vote accepted

You can remove hidden directories (with . at the beginning of the name) like normal directories:

rm -rf .directory_name

(r for recursive, f for force).

To display hidden directories use -a option for ls:

ls -a

You can also use mc or some other file manager to remove them. Most of them will have option to display hidden directories in View menu or in settings. In mc hidden directories are displayed by default.

share|improve this answer
Better not to get in the habit of using -f. You should really only use it if you're expecting many read-only files (e.g. in a .svn folder). – Kevin Apr 9 '12 at 23:24

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.