What unix commands do you use most?

Type this command into your terminal

history | awk '{h[$2]++}END{for(i in h){print h[i],i|"sort -rn|head -20"}}' |awk '!max{max=$1;}{r="";i=s=60*$1/max;while(i-->0)r=r"#";printf "%15s %5d %s %s",$2,$1,r,"\n";}'

My result looks like this:

            git   158 ############################################################ 
        vagrant   157 ############################################################ 
           exit    33 ############# 
             ls    31 ############ 
             cd    25 ########## 
          mongo    16 ####### 
            ssh    14 ###### 
    tomcat_stop    12 ##### 
   tomcat_start    10 #### 
            pwd     7 ### 
        mongodb     6 ### 
             wc     4 ## 
           node     4 ## 
            awk     4 ## 
             vi     3 ## 
         locate     3 ## 
           less     3 ## 
           open     2 # 
          touch     1 # 
           sudo     1 # 

Looks like git and vagrant are my two most command utilities recently.

What’s yours?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: