Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

up vote 9 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
4  
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

 
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.