History meme

It seems that a shell history meme is passing around the blogosphere. I first saw it on Dan Mills' blog post via Planet Mozilla. There are already 10 Mozilla hackers posting their top used shell commands, so I thought I'd do it too.

koeji:~ kourge$ uname -a
Darwin koeji.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 20
08; root:xnu-1228.4.31~1/RELEASE_I386 i386
koeji:~ kourge$ history | awk '{a[$2]++} END {for(i in a){print a[i] " " i}}' | 
sort -rn | head
88 ls
81 cd
28 cvs
26 rm
26 md5sum
23 ./firefox-bin
22 sudo
12 ssh
12 js
9 less

A few notes:

  • md5sum is actually md5 on Mac OS X. I aliased md5 so that I wouldn't suddenly have a hard time adapting should I start using a Linux system.
  • js is an alias of java -Xms256m -Xmx512m org.mozilla.javascript.tools.shell.Main, which is the command to invoke the Rhino shell, which I sometimes use when I write shell scripts in JavaScript. Rhino is an awesome JavaScript implementation in Java.
  • You can see from the cvs count that I'm slacking off recently when it comes to maintaining Drupal modules.

So, fellow Drupalers / Drupalites, what are your most commonly used terminal commands? Beware of the line break before sort -rn when pasting the command into your terminal.

90 cd 50 ls 36 cvs 35 ssh 23

90 cd
50 ls
36 cvs
35 ssh
23 tail
20 patch
17 rm
14 vi
11 cat
10 touch

no surprises here..

222 ls 202 cd 69 top 53

222 ls
202 cd
69 top
53 vi
50 cat
40 exit
30 pwd
28 cvs
24 asterisk
21 less

I love this! 34 cd 12 vi 7

I love this!

34 cd
12 vi
7 ls
6 iconv
4 rm
3 sudo
3 php
3 chmod
2 which
2 screen

167 ssh 59 ls 53 svn 48

167 ssh
59 ls
53 svn
48 sudo
18 cd
17 nslookup
17 cvs
16 vi
14 man
11 tail

94 mate 94 cd 82 ssh 57

94 mate
94 cd
82 ssh
57 exit
55 ls
29 python
12 mv
10 sudo
5 mkdir
5 gcc