cheat-fork-echo/cheat/cheatsheets/history

4 lines
202 B
Plaintext
Raw Normal View History

2013-08-26 18:29:30 +02:00
# To see most used top 10 commands:
2013-08-27 01:19:52 +02:00
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10