Re: [Hampshire] Top ten commands in history

Top Page

Reply to this message
Author: Chris Dennis
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Top ten commands in history
I obviously use mc to save all that messing about with ls and cd (some
of it, anyway):

       62 sudo
       47 mc
       28 ping
       22 wget
       22 mount
       22 cd
       20 man
       20 du
       17 ls
       15 locate


We also learn that su and sudo hide the interesting part of the command. 
  Can someone who is clever at awk change the script
    history | awk '{print$2}' | sort | uniq -c | sort -rg | head -n
to pick out the second word if the first is either 'su' or 'sudo' (or a 
Bash-style 'ENVVAR=value' prefix)?


cheers

Chris
-- 
Chris Dennis                                  cgdennis@???
Fordingbridge, Hampshire, UK