How to kill a dir?

Gunnar vS Kramm gkramm at speakeasy.net
Mon Jan 5 21:45:16 UTC 2004


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

> 
> >
> >
> >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).
> >
> >
> > 
> >
> Yes I am root..
> Output from alias rm..
> [root at dev02 i386]# alias rm
> alias rm='rm -i'
> 
> 
> I have rebooted the system so I doubt its an open file or a hung process..
> 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

I'm seeing a lot of good suggestion from others on this list.  Just for kicks
try un-aliasing rm
unalias rm
and then do the ls -i
find -inum XXXX -exec rm -rf {} \;

OR 

replace rm -rf with 
rmdir in the find command as someone else on the list suggested.



-- 
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/a2b8b145/attachment-0001.sig>


More information about the fedora-list mailing list