This is a single archived entry from Stefan Tilkov’s blog. For more up-to-date content, check out my author page at INNOQ, which has more information about me and also contains a list of published talks, podcasts, and articles. Or you can check out the full archive.

Stupid Meme Time (again)

Stefan Tilkov,

 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]

On April 15, 2008 9:06 AM, Martin Probst said:

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 …

On April 15, 2008 9:26 AM, Stefan Tilkov Author Profile Page said:

Thanks, I’ll try this out.