How to kill a dir?

Gunnar vS Kramm gkramm at speakeasy.net
Mon Jan 5 19:40:15 UTC 2004


Original e-mail from: WipeOut (wipe_out at users.sourceforge.net):

> Gunnar vS Kramm wrote:
> 
> >
> >
> >Perhaps you can delete it using the inode number.  Try this:
> >ls -i
> >you should get something line this
> >4529682 file1  4529681 test
> >(the numbers you get will be different).
> >then do this:
> >find . -inum 4529681 -exec rm -rf {} \;
> >
> >
> >
> > 
> >
> Still no luck..
> 
> [root at dev02 i386]# ls -i
> ls: ??*?: Invalid or incomplete multibyte or wide character
> 799769 test
> [root at dev02 i386]# find . -inum 799769 -exec rm -rf {} \;
> rm: cannot remove directory `./test': Directory not empty
> find: ./??*?: No such file or directory
> [root at dev02 i386]# ls
> ls: ??*?: Invalid or incomplete multibyte or wide character
> test
> 
> 
> Guess I will just have to abandon that directory tree until I rebuild 
> the system one day..
> 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


Naw let's not let Fedora get the best of us.  Two questions;
1. are you doing this as root?
2. is your rm command aliased to something else? (try "alias rm" to check).


-- 
Gunnar vS Kramm
San Francisco, CA
(415)440-1732 <home>
(415)420-1860 <cell>


GPG public-key
--------------
http://www.gunnarkramm.com/keys/gkramm.gpg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040105/fb0fa186/attachment-0001.sig>


More information about the fedora-list mailing list