D-Man  <[EMAIL PROTECTED]> writes:
D> cd / ; rm -fr *.exe
D> 
D> This command will remove all files ending in ".exe" from the entire
D> filesystem.

No, it won't.  It will find all files and directories in the root
directory whose names end in ".exe" and completely and permanently
remove them.  'find', as other people suggested, is a better tool for
this.

HANDY HINT: 'rm' is a pretty dangerous command, since there's no
recovering from it.  I like to type 'echo *.exe', which will print a
list of file names.  I check that those are the files I want, and then 
press up-arrow to get the previous command back and replace the 'echo' 
with 'rm -rf'.  This makes sure that I don't accidentally kill
anything I didn't mean to.

(ObVi: okay, so I actually type 'ESC k c e rm -rf', but that's only
because I like to set my shell to run in vi-emulation mode.  Same net
effect.)

-- 
David Maze             [EMAIL PROTECTED]          http://www.mit.edu/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
        -- Abra Mitchell

Reply via email to