As you know that when you enter any commands on your terminal, they will be kept in the history. So, you can know what are your commands in top 10 by using this command:

history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr

The result is showed as the following:

430 cd
255 ls
142 sudo
16 less
50 apt-cache
14 rm
13 chmod
12 vim
12 history
12 grep

What is your Linux commands in the top 10?

2 comments

  1. Jonathan // 6/24/07, 1:38 AM  

    The question is : Am I a geek ?

    211 sudo
    72 killall
    70 cd
    52 ls
    42 conary
    36 df
    32 ./configure
    29 ssh
    28 vi
    24 convert

  2. matthew // 6/24/07, 11:03 PM  

    Server
    79 sudo
    64 ls
    57 cd
    30 scp
    29 exit
    27 df
    21 clear
    20 su
    14 rtorrent
    13 mkdir

    Desktop
    107 sudo
    73 exit
    41 nvclock
    34 ssh
    24 cd
    22 ls
    20 killall
    17 top
    12 telnet
    12 cat