sunnuntaina, huhtikuuta 13, 2008

What does your shell history say about you?

Vasco had come up with an interesting meme: shell history statistics.

Here's mine from my home Macintosh:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head

101 ls
49 man
43 cd
35 sudo
26 find
21 less
20 port
16 which
16 ssh
11 vi

What does that say about me? I think it says I do not use my home Mac for much command line work. I'm a bit surprised that which and vi are on the list. I try to use a GUI editor on the Mac whenever possible. I use Aquamacs, TextWrangler and a bit of Eclipse. 

And why do I need less so often?

I'm sure the results would be quite different on my Linux machine at work.

Ei kommentteja: