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 o
Sorry, but voted 20+ approved solution didn't work for me :) but I nailed the sucker.
In my case, under root, rm -rf (directory) leads to an infinite loop, and size of the folder is under a gig. Furthermore, the folder is non-listable that is using the dir command within the folder also leads to infinite loop.
Oh Hell no!!!
Enter recovery mode by holding on to left shift at boot. Provide your root password or press enter if there is none.
cd /
mount -o remount,rw /
rm -f (directory) //Purpose is to fix loop bug
rm -r (directory)
See ya!
All hail Linux Lite.