Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

1 total

Shell history command count

Counts how many times each command appears in your shell history.

bash:

history | awk '{print $2}' | sort | uniq -c | sort -rn | head


zsh:

history -1000 | awk '{print $2}' | sort | uniq -c | sort -rn | head
1 total