All the cool kids…..
history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
118 ls
104 vim
72 cd
67 make
14 rm
12 ./test-directory
11 git
10 ./mjpass
9 gvfs-mount
9 cp
history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
118 ls
104 vim
72 cd
67 make
14 rm
12 ./test-directory
11 git
10 ./mjpass
9 gvfs-mount
9 cp