Wednesday, February 27, 2008

My Top 15 Commands

After some searching I found the command to list your top 10 (or any other number you wanted) commands in the terminal. So here is the command:

history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail -n 15 | sort -nr

and here are my top 15 commands:

85 ls
36 vim
34 hg
32 find
30 cd
16 java
14 pd
14 hist
10 stat
8 zip
8 rm
7 screen
7 scp
6 history
6 echo

No comments:

Post a Comment