Search This Blog

Wednesday, November 4, 2009

Bash commands statistics

Looking for some MySQL & performance stuff is found on the page from Alexey N. Kovyrin something interested :).

To see, what are you doing on our Linux box, type the following code on bash console:

$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head

150 ls
30 for
26 du
20 tar
19 java
19 strace
...

No comments:

Post a Comment