mirror of
https://github.com/Erreur32/cheat.git
synced 2025-01-13 16:22:03 +01:00
Added history cheatsheet
This commit is contained in:
parent
821290b41d
commit
78fdc09f8c
1 changed files with 2 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
# 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
|
Loading…
Reference in a new issue