I've seen this on IRC before but have not seen it mentioned on the mailing list. It's just a bit of fun
to find out what the most common commands are in your history. Neil takes credit for actually writing
it, I just run it on boxes when bored :)
On my Ubuntu desktop:-
alan@wopr:~$ history | awk '{print $2}' | sort | uniq -c | sort -rg | head -n 10
105 cd
88 ls
64 sudo
29 ssh
14 cat
14 apt-cache
10 ./configure
9 wget
9 ping
7 history
on one of my Debian servers:-
alan@bishop:~$ history | awk '{print $2}' | sort | uniq -c | sort -rg | head -n 10
129 sudo
89 cd
73 ls
67 screen
15 vi
15 grep
10 top
10 date
9 ping
7 tail
So, what are your top ten commands in the history? What can we learn from this? :)
Cheers,
Al.