frequent-commands.sh 121 B

1234
  1. #! /bin/bash
  2. # list most frequently run commands
  3. cat ~/.bash_history | awk '{print $1 }' | sort | uniq -c | sort -rn