This post originated from an RSS feed registered with Java Buzz
by Weiqi Gao.
Original Post: What's In Your History
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
yclog: Learned from KageSenshi that, there is a meme happening at the Fedora Planet, that is to execute this command:
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
WARNING: COPYING/PASTING AND EXECUTING A COMMAND LINE FROM THE INTERNET MAY BE HAZARDOUS TO YOUR HEALTH AND CAREER.
With that said, here goes mine result:
[weiqi@gao] $ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
132 ls
113 cd
23 vi
22 stty
14 pwd
13 ssh
11 less
11 java
10 ant
9 svn
(And you all know why I ran stty 22 times in the past 1000 command lines.)