RE: How to kill a dir?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
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@xxxxxxxxxxxxxxx]
> Sent:	Monday, January 05, 2004 3:35 PM
> To:	fedora-list@xxxxxxxxxx
> 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 {} \;
> >>
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux