Shell history command count
Counts how many times each command appears in your shell history.
bash:
zsh:
bash:
history | awk '{print $2}' | sort | uniq -c | sort -rn | head
zsh:
history -1000 | awk '{print $2}' | sort | uniq -c | sort -rn | head