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

Re: Deltree command?



David Gaudine wrote:
> On Sun, 22 Feb 1998, Daniel Martin at cush wrote:
> 
> > It's not rmdir, but just rm; "rm -r" is what you want - "rm -rf" does
> > what you want without asking questions  (Just plain "rm -r" will ask
> > you about whether or not to delete files you don't have write access
> > to).
> > 
> > I hope I don't need to say how extremely dangerous these commands are, 
> > and how careful you should be when using them.
> 
> For sure.  In fact, I'd be careful about counting on rm -r to prompt you.
> -f or --force  means no prompting, -i or --interactive means prompting,
> and I think the default is no prompting unless the "noclobber"
> environment variable is set.  This may depend on the shell though.
> I just tried it with tcsh and "noclobber" didn't help.
> [checks the man page] [checks the info page] Aw heck, use -i.

For my less-brains-than-a-brick users, I do:

cat > -i
^D

in each dir that they normally work in. This way, when they 'accidentally'
do 'rm -r' in the dir, it also evals the -i and prompts them for
each file.. crude, but it works..

Tim

-- 
 (work) sailer@bnl.gov / (home) tps@buoy.com - http://www.buoy.com/~tps
           Monday is a hard way to spend one-seventh of your life.
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: