Overview most used commands with zsh_stats

Published on Jan 1, 2024

1 min read


ZSH is the default shell in macOS. If you use Oh my Zsh to manage the ZSH configuration plugins and a theme to prettify the terminal, you can also use several built-in utilities.

One such utility is the zsh_stats command, which provides a list of your top twenty most frequently used commands and how many times each command has run. To use it, run the following command from a terminal window:


This command will display an output like this:

zsh_stats running inside a terminal window.

It is useful for analyzing your command usage patterns.

More Posts

Browse all posts

Aman Mittal author

I'm a software developer and a technical writer. On this blog, I write about my learnings in software development and technical writing.

Currently, working as the documentation lead at 𝝠 Expo. Read more about me on the About page.

Copyright ©  2019-2024 Aman Mittal · All Rights Reserved.