Print 100 most often used commands


/ Published in: Bash
Save to your folder(s)

For fun and work optimisation purposes :)


Copy this code and paste it in your HTML
  1. history | awk '{ print $2 }' | awk '{ a[$0]++ } END { for(key in a) print a[key], key }' | sort -rn | head -n 100

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.