Re: [Hampshire] Top ten commands in history

Top Page

Reply to this message
Author: Jim Kissel
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Top ten commands in history


Alan Pope wrote:
> I've seen this on IRC before but have not seen it mentioned on the mailing list. It's just a bit of fun
> to find out what the most common commands are in your history. Neil takes credit for actually writing
> it, I just run it on boxes when bored :)
>
> On my Ubuntu desktop:-
>
> alan@wopr:~$  history | awk '{print $2}' | sort | uniq -c | sort -rg | head -n 10
>     105 cd
>      88 ls
>      64 sudo
>      29 ssh
>      14 cat
>      14 apt-cache
>      10 ./configure
>       9 wget
>       9 ping
>       7 history

>
> on one of my Debian servers:-
>
> alan@bishop:~$  history | awk '{print $2}' | sort | uniq -c | sort -rg | head -n 10
>     129 sudo
>      89 cd
>      73 ls
>      67 screen
>      15 vi
>      15 grep
>      10 top
>      10 date
>       9 ping
>       7 tail

>
> So, what are your top ten commands in the history? What can we learn from this? :)
>

jlk@jlk-desktop:~$ history | awk '{print $2}' | sort | uniq -c | sort 
-rg | head  -n 10
     101 ls
      87 cd
      53 sudo
      29 man
      23 rm
      22 du
      20 led
      20 cat
      19 ssh
      15 file
jlk@jlk-desktop:~$


led is 'ls -lt|head -20'
> Cheers,
> Al.
>