fugu fugu - 2 years ago 144
Linux Question

Can't remove a directory in Unix

I've got a seemingly un-deletable directory in Unix that contains some hidden files with names that start

. I'm unable to delete it using either of these commands:

rm -R <dir>
rm -Rf <dir>

Any thoughts?

Answer Source

Try to delete it with root user or use sudo, if you are in trouble

Use rm -rf dir with root account and it will be deleted, since you should be facing a permissions issue.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download