[LINUX] Top Commands List

Posted on: 14 Nov 2015

Under: linux

Tags: #linux  #commands 

Here’s a terminal command to know the top 10 commands you use. Gives you a sense of what you really do on the machine!

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head

Just copy and paste in on your terminal and press enter.

I haven’t tried it on a Mac, but it should work since its uses POSIX too. My top 10 commands (just before putting this up) are

718 git
242 sudo
138 exit
 93 cd
 89 gcc
 75 java
 72 ls
 70 javac
 56 g++
 54 ./a.out

Stay tuned for more such terminal tricks and do share your top 10 commands in the comments below!


Because sharing is caring...


Get in touch for help, issues and/or suggestions