How to kill a dir?
Nix, Robert P.
Nix.Robert at mayo.edu
Mon Jan 5 21:38:57 UTC 2004
Have we tried rmdir at all though? Try the find command listed below, but substitute rmdir for rm in the -exec.
----
Robert P. Nix internet: nix.robert at mayo.edu
Mayo Clinic phone: 507-284-0844
RO-CE-8-857 page: 507-270-1182
200 First St. SW
Rochester, MN 55905
---- "Codito, Ergo Sum"
"In theory, theory and practice are the same,
but in practice, theory and practice are different."
> -----Original Message-----
> From: Wade Chandler [SMTP:wchandler at redesetgrow.com]
> Sent: Monday, January 05, 2004 3:35 PM
> To: fedora-list at redhat.com
> Subject: Re: How to kill a dir?
>
> not really if a directory doesn't have rm -fR or -Rf used on it, it must
> have rmdir used on it...hint though....rmdir won't work if the directory
> isn't empty.
>
> Wade
>
> WipeOut wrote:
>
> > Brian Fahrlander wrote:
> >
> >> On Mon, 2004-01-05 at 13:10, WipeOut wrote:
> >> ls -lai <----notice that the 'i' is included. Sample:
> >>
> >> Inum: Perms Size, etc...
> >> 968014 -rw-rw-r-- 1 brian brian 3885999 Dec 24 15:12
> >> ximian-artwork-0.2.26-1.i386.rpm
> >> 968013 -rw-rw-r-- 1 brian brian 327381 Dec 24 15:11
> >> xmms-status-plugin-1.0-2.i386.rpm
> >> 968015 -rw-rw-r-- 1 brian brian 320725 Dec 24 15:12
> >> xscorch-0.1.16-0.1pre2.i386.rpm
> >> 968016 -rw-rw-r-- 1 brian brian 441488 Dec 24 15:12
> >> zsnes-1.36-3.i386.rpm
> >>
> >> Find the directory/file by it's inode number, then
> >>
> >> find . -inum 968016 -exec rm {} \;
> >>
>
More information about the fedora-list
mailing list