Stupid Meme Time (again)
slim:~ st$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n ",a[i],i}}'|sort -rn|head
132 cd
116 ls
18 ssh
17 vi
15 svn
15 rake
15 find
14 hg
13 script/server
11 killall
Major lesson learned: I should really do something about these hanging ssh connections.
[Meme spread via Steve and many others]
If your ssh connection hangs, most of the time you wont need killall, you can terminate a connection by typing ~ . (tilde followed by dot). This only works if your terminal knows that you’re at the start of a line, so maybe you have to type Enter ~ .
Works like a charm, and is tremendously useful, especially if you change networks a lot and end up with three terminals that have a hanging ssh session all the time …
Thanks, I’ll try this out.