Re: [Hampshire] Top ten commands in history

Top Page

Reply to this message
Author: Alex
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Top ten commands in history
>
> 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)?



I'd be willing to bet that the majority of the commands accessed through
sudo on this list would be 'apt-get'. Am I wrong? :)




--
Alex Collins