$ history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
146 sudo
84 cd
77 ls
16 cl
13 c++
11 pstree
10 ./a.out
9 ping
8 man
8 make
$ history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
146 sudo
84 cd
77 ls
16 cl
13 c++
11 pstree
10 ./a.out
9 ping
8 man
8 make
Aqui ficou algo como:
lipe@mjolnir:~$ history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
23 scp
19 ls
8 su -
7 cd
6 tar
6 ssh
4 rm
3 ping
3 lsusb
Mas o equipamento é novinho, tem só 2 dias de trabalho.