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

Re: deleting files



Lindsay Allen writes:
| > rm -rf *
| 
| That's something I *never* do.  Why?  Because it puts "rm -rf *" in my
| history buffer which means that one slip can lead to disaster.  So I
| use rm -rf /here/there/some/place/* which at least means I cannot blow
| away my whole file system if I make an error.

If that's a big concern for you, under bash, you could precede the
command with a space, which prevents history insertion.

Mx.


Reply to: