How to kill a dir?

Steven Stern sds-email-list at mindspring.com
Mon Jan 5 21:37:15 UTC 2004


On Mon, 05 Jan 2004 21:22:57 +0000, WipeOut <wipe_out at users.sourceforge.net>
wrote:


>
>[root at dev02 i386]# ls -lai
>ls: ??*?: Invalid or incomplete multibyte or wide character
>total 16
> 799767 drwxrwsr-x    3 root     root         4096 Jan  5 18:04 .
>1665003 drwxrwsr-x    3 root     root         4096 Nov 12 07:03 ..
> 799769 drwxrwsr-x    2 root     root         8192 Jan  4 19:44 test
>[root at dev02 i386]# find . -inum 799769 -exec rm {} \;
>rm: cannot remove `./test': Is a directory
>find: ./??*?: No such file or directory
>
>No joy..
>
>Looks like I have found a weird one huh!!..

How about 

   mv *test* newname
   cd newname
   rm -f -r *
   cd ..
   rmdir newname





More information about the fedora-list mailing list