Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Created April 6, 2012 19:01
Show Gist options
  • Save kevinburke/2322091 to your computer and use it in GitHub Desktop.
Save kevinburke/2322091 to your computer and use it in GitHub Desktop.
Most used shell commands
history 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
1 3427 34.2734% git
2 1168 11.6812% ll
3 1164 11.6412% cd
4 791 7.91079% vi
5 578 5.78058% ack
6 299 2.9903% j
7 257 2.57026% cat
8 250 2.50025% python
9 169 1.69017% curl
10 166 1.66017% svn
11 160 1.60016% ..
12 110 1.10011% ..2
13 97 0.970097% rm
14 78 0.780078% nosetests
15 56 0.560056% which
16 53 0.530053% mv
17 50 0.50005% ..3
18 49 0.490049% mysql
19 49 0.490049% mkdir
20 42 0.420042% ipython
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment