[plug] /Newbie - Removing non empty directories

Earnshaw, Mike earnshawm at wa.switch.aust.com
Tue May 23 11:24:50 WST 2000


Excuse the maybe unwarrented pause, but isn't -R a *bad* thing? Or will the
directory_name limit it?

Thanks

> -----Original Message-----
> From: Scott, Simon [mailto:Simon.Scott at SEALCORP.com.au]
> Sent: Tuesday, May 23, 2000 11:14 AM
> To: 'plug at plug.linux.org.au'
> Subject: RE: [plug] /Newbie - Removing non empty directories
> Importance: Low
> 
> 
> rm -fR directory_name
> 
> Stay up hacking each weekend. Sleep is for the week.
> > ------------------------------------------------------
> >  Simon Scott
> >  DBA
> >  Sealcorp Holdings Limited
> >  Perth, WA
> >  e-mail:  simon.scott at sealcorp.com.au
> >  phone:  08 9265 5648
> > ------------------------------------------------------
> > 
> > 
> 
> 
> > -----Original Message-----
> > From: Earnshaw, Mike [mailto:earnshawm at wa.switch.aust.com]
> > Sent: Tuesday, 23 May 2000 11:11
> > To: PLUG (E-mail)
> > Subject: [plug] /Newbie - Removing non empty directories
> > 
> > 
> > List,
> > 
> > How do you remove non empty directories in Linux?
> > 
> > I have tried:
> > 
> > rmdir * --ignore-fail-on-non-empty
> > 
> > and
> > 
> > rmdir --ignore-fail-on-non-empty *
> > 
> > also tried using specific directory names instead of *
> > 
> > Neither worked. I appreciate the danger of -r, which I am 
> > **not** using.
> > 
> > If I wanted to do this on a regular basis, typing in the 
> > above switches
> > (assuming they worked) would be tedious (probably an 
> > intentional thing), can
> > I set an alias up for this?
> > 
> > Thanks
> > 
> > --------------------------------------------------------------
> > --------------
> > Mike Earnshaw       | "It don't mean a thing if     | 
> e-mail in header
> > Computer Systems    | you cain't get that Ping...." | Tel: 
> > +61 8 9256 1099
> >   Support           |    Duke Ellington, 1932       | Fax: 
> > +61 8 9256 1199
> > --------------------------------------------------------------
> > --------------
> > Union Switch & Signal, 24 Bannick Court, Canning Vale, WA 
> > 6155, Australia
> > --------------------------------------------------------------
> > --------------
> > 
> 



More information about the plug mailing list