Ever wonder what shell commands you use most often? Copy and paste the following into your CLI and see your top 10.

history | awk '{print $2}' | sort |uniq -c | sort -rn | head -10

Here is a list of mine from my dev machine:

  • 574 git
  • 461 cd
  • 422 vim
  • 314 ls
  • 202 gss
  • 109 exit
  • 97 php
  • 68 sudo
  • 64 ag
  • 41 ..

I think it’s fun to see what you use most often. Also, as a bonus, if you are a PhpStorm user go to help -> productivity guide to see what features of the IDE you use most often.

One thought on “ Find Your Top 10 Shell Commands ”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s