fugu fugu - 6 months ago 25
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

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

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


Any thoughts?

Answer

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.