Can't remove a directory in Unix

fugu picture fugu · Jun 5, 2013 · Viewed 96.7k times · Source

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?

Answer

Paulo Fidalgo picture Paulo Fidalgo · Jun 6, 2013

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.