[How To] Know What Terminal Commands You Use The Most

A lot of us use the command line on a regular basis, be it to do some simple package management with apt or monitor system resources with top.

Have you ever wondered which commands you use most often? There’s an easy way to find out.

Run the following command in a new terminal window to see a list of your 10 most used terminal commands (and a small tally of how often you’ve used each):

Naturally these stats aren’t of any real practical value. And if you regularly clear the bash cache it may not even be hugely accurate.

It also doesn’t count complete commands (e.g, ‘sudo apt update‘).


Want to see more than 10 commands? Just edit the number at the end of this command to the number of commands you’d like to see (e.g, -14 to see the top 14, and so on).

What are yours?

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Spelling error report

The following text will be sent to our editors: