[Techtalk] New to the list...new to linux

Sunnanvind Briling Fenderson sunnanvind at fenderson.com
Tue Oct 2 17:31:48 EST 2001

On Mon, Oct 01, 2001 at 11:55:21AM -0700, Kai MacTane wrote:
> Another useful trick for being careful with rm commands is to try them with 
> ls first. That will get you a list of all the things that are about to get 
> nuked. Then, if you like it, you can just press the up-arrow key to 
> reconstitute that command line (assuming you're using a modern shell, like 
> bash or tcsh), back up to the beginning of the line, replace ls with rm, 
> and voila!

That's true, and echo works even nicer than ls for this. Good idea.

More information about the Techtalk mailing list