Top 10 used commands

After reading sdog's last blog entry with the same title as this one, I'd try the same command on my laptop.

Here is the result of

 history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
    132 ssh
     84 exit
     52 su
     35 telnet
     32 cd
     25 ls
     19 grep
     15 man
     13 scp
     13 ping

After reading sdog’s last blog entry with the same title as this one, I’d try the same command on my laptop.

Here is the result of

 history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
    132 ssh
     84 exit
     52 su
     35 telnet
     32 cd
     25 ls
     19 grep
     15 man
     13 scp
     13 ping

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Leave a Reply

Your email address will not be published. Required fields are marked *

As MySQL Community Manager, I am an employee of Oracle and the views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

You can find articles I wrote on Oracle’s blog.