Which are your most-used Linux commands?

By | February 22, 2009

You can display a top 10 of your most-used Linux commands by pasting this in your console:

history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”}{print $1}’ | sort | uniq -c | sort -n | tail | sort -nr

The output will be something like

76 cd
73 sudo
45 ls
37 whois
28 apt-cache
24 locate
15 htop
13 qemu
11 cat
10 nano

2 thoughts on “Which are your most-used Linux commands?

  1. Zach

    You should make sure your blogging platform doesn’t convert your ‘ and ” before you post.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *