Skip to content

Instantly share code, notes, and snippets.

@matthewspear
Last active May 26, 2020 01:41
Show Gist options
  • Save matthewspear/1da08812f6856ab07a8589fae677e3f1 to your computer and use it in GitHub Desktop.
Save matthewspear/1da08812f6856ab07a8589fae677e3f1 to your computer and use it in GitHub Desktop.
Find out which commands you use most on the command-line
history > history.txt
awk '{print $1}' ../history.txt > commands.txt
cat commands.txt | sort | uniq -c | sort -r > sorted_commands.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment