Can't remove a directory in Unix

前端 未结 6 737
野性不改
野性不改 2020-12-28 14:27

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

6条回答
  •  不知归路
    2020-12-28 15:21

    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.

提交回复
热议问题