Advertisement
haitch

Bash: Top used commands

Sep 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1.     history |
  2.     awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' |
  3.     grep -v "./" |
  4.     column -c3 -s " " -t |
  5.     sort -nr | nl |  
  6.     head -n 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement