^V Esc c

Ever mess up your terminal by echoing something stupid, like cat /var/log/apache2/access.log.2.gz when you though you already gunzipped it? Sometimes tab completion isn't your friend.

$ ┌⎽ -┌ /
├⎺├▒┌ 84
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-01-21 01:16 ␉␋┼
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-06-07 10:39 ␉⎺⎺├
␍⎼┬│⎼-│⎼-│ 11 ⎼⎺⎺├ ⎼⎺⎺├  2960 2009-11-08 10:04 ␍␊┴
␍⎼┬│⎼-│⎼-│ 61 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-01-21 01:40 ␊├␌
␍⎼┬│⎼-│⎼-│  4 ⎼⎺⎺├ ⎼⎺⎺├  4096 2009-11-08 09:35 ␤⎺└␊
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-06-06 23:03 ␋┼␋├⎼␍
␍⎼┬│⎼-│⎼-│ 11 ⎼⎺⎺├ ⎼⎺⎺├ 12288 2010-01-21 01:16 ┌␋␉
␍⎼┬│------  2 ⎼⎺⎺├ ⎼⎺⎺├ 16384 2008-06-06 23:02 ┌⎺⎽├+°⎺┤┼␍
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-06-06 23:03 └␊␍␋▒
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2006-10-28 08:06 └┼├
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-06-06 23:03 ⎺⎻├
␍⎼-│⎼-│⎼-│ 60 ⎼⎺⎺├ ⎼⎺⎺├     0 2009-11-08 10:03 ⎻⎼⎺␌
␍⎼┬│------ 15 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-02-13 12:04 ⎼⎺⎺├
␍⎼┬│⎼-│⎼-│  2 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-01-21 01:16 ⎽␉␋┼
␍⎼┬│⎼-│⎼-│  7 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-11-08 13:44 ⎽⎼┴
␍⎼┬│⎼-│⎼-│ 12 ⎼⎺⎺├ ⎼⎺⎺├     0 2009-11-08 10:03 ⎽≤⎽
␍⎼┬│⎼┬│⎼┬├  4 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-02-13 12:04 ├└⎻
␍⎼┬│⎼-│⎼-│ 12 ⎼⎺⎺├ ⎼⎺⎺├  4096 2010-01-21 01:16 ┤⎽⎼
␍⎼┬│⎼-│⎼-│ 14 ⎼⎺⎺├ ⎼⎺⎺├  4096 2008-07-08 23:33 ┴▒⎼

Two things I learned about years ago that occasionally get me out of trouble.

  1. echo ^V^O
  2. echo ^V Esc c (without spaces)