fugu fugu - 11 months ago 68
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?


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.