LINUX: FIVE MOST USED TERMINAL COMMANDS

created: 23.05.2019 13:55

edited: 23.05.2019 13:57

back
bash
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 -n 5