Skip to content

View most used commands with zsh_stats

Published:

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:

zsh_stats

This command will display an output like this:

zsh_stats running inside a terminal window.

It is useful for analyzing your command usage patterns.


Previous Post
2023 - A year in review
Next Post
Hide and unhide files or directories visibility with chflags on macOS

I'm a software developer and technical writer. On this blog, I share my learnings about both fields. Recently, I have begun exploring other topics, so don't be surprised if you find something new here.

Currently, working as a documentation lead at Expo.