how did you end up doing this accidentally?
$ foo < bar # runs command `foo`, reading from `bar` on stdin
$ foo > bar # runs command `foo`, writing stdout to `bar`
Writing `>` instead of `<` has resulted in many a blowup at 3 AM rm * -i
The system response was "-i not found" or something like that. rm bob*
has completely different behavior from rm bob *
The above line of code successfully fixed a bug I'd been trying to find for weeks in source code in the same directory. When I rewrote it from scratch, the bug was gone. rm /tmp/*
zsh: sure you want to delete all the files in /tmp [yn]?I avert the problem by having rm run interactively by default:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
http://aniggler.tumblr.com/post/44530262158/the-first-thing-... ssh remotehost.example.com mysqldump -udbuser proddatabase | mysql -uroot testdatabase
(n.b. the mysqldump options that may lock your production tables during the dump.)