1
0
Fork 0
mirror of https://github.com/Erreur32/cheat.git synced 2025-01-13 08:12:01 +01:00
cheat-fork-echo/cheatsheets/history
2013-08-26 19:19:52 -04:00

3 lines
202 B
Text

# To see most used top 10 commands:
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