Archive for September 25th, 2006

Top 10 used commands

Posted in Uncategorized on September 25th, 2006 by Johan Huysmans – 1 Comment

Kris has posted his top 10 here is mine…

[johan@raskas ~]$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}uniq -c|sort -rn|head -10
    248 ls
    189 cd
     88 cvs
     71 rm
     55 ssh
     54 ll
     41 vi
     30 host
     27 cp
     24 scp

All basic commands nothing special. But my ‘ls’ habit shows up.
Every time I open a console I type ‘ls’ sometimes multiple times, or if I don’t know what I was doing I just type ‘ls’.
But it seems I’m not the only one with that habit.

Now for the root-user

[root@raskas ~]# history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
    227 ls
    209 cd
     96 vi
     66 ll
     49 minicom
     37 /etc/init.d/network
     21 exit
     20 cat
     17 yum
     17 scp

Here are 2 “strange” things.
The first is the minicom, I don’t really use it much. But when you have the only laptop with a serial connector at the office …. (I guess this is from a couple of weeks ago when there where some cisco-switch-problems)
The /etc/init.d/network stuff is obvious… when I leave the office I suspend my laptop, I resume at home within an other network so a restart of the network is required.