Shell history: 2018 edition

2018-11-28 2 min read

    In what has become an annual tradition I have a very simple shell script that generates a frequency of my most commonly run shell commands. This year saw a pretty big change from 2017. The most obvious difference is that I use “git” more frequently than in the past. This is a tough one to analyze by looking at the data since my usage of oh-my-zsh skews the data. It provides a variety of git aliases - for example gp for git push and gco for git checkout - that appear elsewhere in the results so my pure use of “git” is almost isolated to the cases where I do a commit.

    The other big difference is my aggressive use of the AWS CLI. I have seen my role shift to less of a coder and more in support of DevOps so this is reasonable. I’ve also made an effort to minimize my use of the AWS Console in favor of having quick and handy commands that give me quicker access to the information I need.

    This was also the year I finally embraced Docker. Before this year I had never used docker I’ve finally embraced docker. Before 2018 I had never used Docker and now use it on a semi-regular basis.

    A few other interesting observations come from looking at the commands that only appeared in 2018. The first is “siege” which was a small load testing program I was messing around with earlier this year. The second was “rg” which while less powerful than grep does the simple searches much much faster.

    This is an interesting exercise and I’d encourage others to start doing this as well. It really does give you a sense of how your terminal usage has changed and how it aligns with industry trends.

    Command2018 Count2017 Count2014 Count2018 Pct2017 Pct2014 Pct
    git140358134716.39%7.55%41.26%
    aws907325010.60%4.22%0.00%
    curl52513906.13%1.81%0.00%
    cd466608495.44%7.90%5.83%
    gco4477505.22%0.97%0.00%
    ls3164151033.69%5.39%12.25%
    grep2788743.25%1.13%0.48%
    ssh24762282.89%0.81%3.33%
    python242354892.83%4.60%10.58%
    cat22674282.64%0.96%3.33%
    rm20361152.37%0.79%1.78%
    history1653551.93%0.45%0.59%
    less1598501.86%1.10%0.00%
    docker151001.76%0.00%0.00%
    mv1394941.62%0.64%0.48%
    rake13152151.53%0.68%1.78%
    mediumify1254101.46%0.53%0.00%
    brew1174951.37%0.64%0.59%
    emacs116101221.36%1.31%2.62%
    sudo1076191.25%0.79%1.07%
    find1028031.19%1.04%0.36%
    pip9368141.09%0.88%1.66%
    mkdir853520.99%0.45%0.24%
    docker-compose806500.93%0.84%0.00%
    cp783720.91%0.48%0.24%
    siege72000.84%0.00%0.00%
    npm6624100.77%3.13%0.00%
    gd5942100.69%5.47%0.00%
    pbpaste542600.63%0.34%0.00%
    gb533200.62%0.42%0.00%
    rg46000.54%0.00%0.00%
    ping4616230.54%0.21%2.73%
    open454230.53%0.55%0.36%
    pwd41438120.48%5.69%1.43%
    export39400.46%0.05%0.00%
    python338000.44%0.00%0.00%
    gst3679500.42%10.32%0.00%
    mkvirtualenv331630.39%0.21%0.36%
    alias321600.37%0.21%0.00%
    mongo31000.36%0.00%0.00%
    echo301520.35%0.19%0.24%
    gl2952500.34%6.82%0.00%
    yarn28000.33%0.00%0.00%
    wc27970.32%0.12%0.83%
    touch271100.32%0.14%0.00%
    jekyll27112120.32%1.45%1.43%
    ./tf-wrapper25000.29%0.00%0.00%
    gp2437000.28%4.81%0.00%
    code2429700.28%3.86%0.00%
    man231200.27%0.16%0.00%
    join23700.27%0.09%0.00%
    sh22040.26%0.00%0.48%
    gbda2130400.25%3.95%0.00%
    ffmpeg20700.23%0.09%0.00%
    workon195470.22%0.70%0.83%
    go194700.22%0.61%0.00%
    du191800.22%0.23%0.00%
    wrk18000.21%0.00%0.00%
    scp181300.21%0.17%0.00%
    gradle184600.21%0.60%0.00%
    diff181700.21%0.22%0.00%
    ci18000.21%0.00%0.00%
    ps17700.20%0.09%0.00%
    php17300.20%0.04%0.00%
    kubectl16000.19%0.00%0.00%
    cut16700.19%0.09%0.00%
    chmod16500.19%0.06%0.00%
    ab16000.19%0.00%0.00%
    ./gradlew16000.19%0.00%0.00%
    g_pass152200.18%0.29%0.00%
    flask15000.18%0.00%0.00%
    tar14000.16%0.00%0.00%
    airflow14500.16%0.06%0.00%
    nvm13000.15%0.00%0.00%
    kill12000.14%0.00%0.00%
    code-insiders12000.14%0.00%0.00%
    which111100.13%0.14%0.00%
    n111300.13%0.17%0.00%
    yolk10000.12%0.00%0.00%
    route10000.12%0.00%0.00%
    netstat10000.12%0.00%0.00%
    nslookup9000.11%0.00%0.00%
    wordcloud_cli.py8000.09%0.00%0.00%
    unzip8600.09%0.08%0.00%
    mail81400.09%0.18%0.00%
    hub84200.09%0.55%0.00%
    head8050.09%0.00%0.59%
    datalab8000.09%0.00%0.00%
    cdblog862140.09%0.81%1.66%
    traceroute7400.08%0.05%0.00%
    telnet7000.08%0.00%0.00%
    split7000.08%0.00%0.00%
    s37000.08%0.00%0.00%
    gzip7000.08%0.00%0.00%
    gcloud7000.08%0.00%0.00%
    date7000.08%0.00%0.00%
    zkCli6000.07%0.00%0.00%
    source6020.07%0.00%0.24%
    sendEmail6600.07%0.08%0.00%
    node62500.07%0.32%0.00%
    jupyter6300.07%0.04%0.00%
    gunzip6000.07%0.00%0.00%
    ansible-vault6000.07%0.00%0.00%
    ./ngrok6000.07%0.00%0.00%
    terraform5000.06%0.00%0.00%
    protoc5700.06%0.09%0.00%
    mvn5000.06%0.00%0.00%
    heptio-authenticator-aws5000.06%0.00%0.00%
    ansible-playbook5000.06%0.00%0.00%
    wget4000.05%0.00%0.00%
    serverless4000.05%0.00%0.00%
    sass4030.05%0.00%0.36%
    ruby4800.05%0.10%0.00%