- history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
- 2141 git
- 967 vagrant
- 702 cd
- 701 gvim
- 618 ssh
- 552 fab
- 444 ls
- 360 vim
- 318 rm
- 223 mv
- #该片段来自于http://www.codesnippet.cn/detail/010720134378.html
来源: http://www.codesnippet.cn/detail/010720134378.html