linuxunixdirectoryrm

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 with .panfs. I'm unable to delete it using either of these commands:

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

Does anyone have any suggestions?


Solution

  • 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.