Re: [Hampshire] Top ten commands in history

Page principale

Répondre à ce message
Auteur: Alex
Date:  
À: Hampshire LUG Discussion List
Sujet: 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