history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
Here's my result:
yclian@nemesis:~$ history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn|head
110 ls
109 cd
41 sudo
39 svn
37 mvn
21 cat
12 java
10 $JAVA_HOME/bin/java
9 find
8 sh
svn, mvn, java. What a Java guy.
It's your turn now. :-)
- yc
3 comments:
110 ls
109 cd
More likely you are lost and keep searching your files :P
'ls' is a habit. You should have learned about it from me, I can type 'ls' and 'dir' for no reason.
- yc
Oh by the way, we have 'find' and 'grep' to help searching for stuff in Linux. :-)
Definitely not 'ls' and 'cd' when you're lost.
- yc
Post a Comment