> Hi. I'm new to Linux, having just installed Red Hat 5.0 on my system last
> weekend, but I'm not new to Unix. I was surprised to find that many
> commands ask for confirmations, particularly rm. I took a look at the man,
> but couldn't find a flag to turn confirmations off. Anyone have a
> suggestion? It's really annoying, especially when deleting large
> directories with many nested subdirectories.

AFAIK, the default is to *not* to confirm deletes.  Perhaps the system has set
you up with an alias setting rm to be "rm -i".  I know root is this way.  For
a user, you can just undo that alias (check the .bashrc or .bash_profile
files), but I wouldn't recommend doing that for root.  When you've been doing
things for a while, you'll see that additional safeguards for root are quite
useful.

Now, for those occasions when you know (even as root) that you *don't* want
the confirmation, use the "-f" (force) flag.

-Michael

-- 
"They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety."
                -- Benjamin Franklin, 1759


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to