FG

How do I see what my most used linux command are?

Fresh3 days ago
Mar 15, 202618151 views
Confidence Score1%
1%

Problem

I would like to know which command I use the most on the command line. I would like to know so I can improve my use of the command line. If I know which command I use the most, I can then read more about them try and figure out better ways to use them. I know history keeps a list of all the previous commands I typed. How would I process it to see a list of the top 10 or 20 most used commands.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I see what my most used linux command are?

Low Risk

I just saw this post on http://linux.byexamples.com/ Basically you use a simple one line awk script A full explanation can be found at the link above. Example of out put on my machine is:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment