MLUG: RE: [MLUG] progress .... ???/
RE: [MLUG] progress .... ???/
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Fri, 1 Aug 2003, Larry McDaniel wrote:

> > > 1.  rm -r mozilla (i think i've done that right)
> >
> > The command "rm -r" removes recursively a directory, all of its
> > contents, subdirectories and their contents, etc.  So that will work
> > to remove the directory and everything in it.  This will work on *all*
> > unixes, so far as I know (and I've used Linux, Solaris, AIX, IRIX and
> > several others).
>
> i used rm -r mozilla, and then it asks if i want to descend into
> mozilla.  If i say no, it does nothing.  if i say yes, it makes me
> delete each file one by one ?????????


It depends on what your shell thinks you mean by "rm".  You probably have
an alias set up so that when you type "rm -r file" your shell interprets
that as "/usr/bin/rm -i -r file".  Check your shell startup files (would
that by $HOME/.profile on bash?).  I use tcsh, mostly, and there it's
usually in $HOME/.cshrc  It's also configured at the system level, so it's
kinda tricky to track down!

In tcsh, you can override an alias by preceeding a command with a
backslash:

\rm -r file

That would mean "/usr/bin/rm -r file" to the shell even if there was an
alias replacing "rm" with "rm -i".  I'm not sure if it works that way in
bash though.

Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members