Examining my shell command history

2017-09-21 1 min read

    A few years ago I wrote a simple script to analyze my shell history in order to examine my most frequently run shell commands. Being in dire need of a new blog post and suffering from a pretty heavy bout of writer’s block I thought it would be interesting to rerun the analysis and see how it compared to results from over 3 years ago.

    It’s tough to say whether my usage has changed significantly. My adoption of zsh with the oh-my-zsh plugin have made my usage a bit more efficient - especially when using git. The other obvious change is that I’m running python code half as much as I used to and have also reduced my usage of text editors. I used to use fabric a ton to automate some deploys but have moved completely off of that. What has remained consistent is my blogging - my little alias (cdblog) to move to my blog directory and jekyll have stayed roughly the same as well as some other administrative commands.

    Command2014 Count2017 Count2014 Pct2017 Pct
    gst07950.0%9.6%
    cd496085.1%7.3%
    git34758136.0%7.0%
    gl05250.0%6.3%
    pwd124381.2%5.3%
    gd04210.0%5.1%
    ls10341510.7%5.0%
    gp03700.0%4.4%
    python893549.2%4.3%
    aws03250.0%3.9%
    gbda03040.0%3.7%
    code02970.0%3.6%
    connectec2112511.1%3.0%
    npm02410.0%2.9%
    curl01390.0%1.7%
    jekyll121121.2%1.3%
    emacs221012.3%1.2%
    grep4870.4%1.0%
    less0850.0%1.0%
    find3800.3%1.0%
    gco0750.0%0.9%
    cat28742.9%0.9%
    pip14681.5%0.8%
    docker-compose0650.0%0.8%
    ssh28622.9%0.7%
    cdblog14621.5%0.7%
    rm15611.6%0.7%
    sudo9610.9%0.7%
    gcm0590.0%0.7%
    workon7540.7%0.6%
    rake15521.6%0.6%
    brew5490.5%0.6%
    mv4490.4%0.6%
    to_temp0490.0%0.6%
    go0470.0%0.6%
    gradle0460.0%0.6%
    from_temp0460.0%0.6%
    open3420.3%0.5%
    hub0420.0%0.5%
    mediumify0410.0%0.5%
    grunt0380.0%0.5%
    cp2370.2%0.4%
    history5350.5%0.4%
    mkdir2350.2%0.4%
    gb0320.0%0.4%
    pbpaste0260.0%0.3%
    node0250.0%0.3%
    bower0240.0%0.3%
    g_pass0220.0%0.3%
    du0180.0%0.2%
    connect_ec20170.0%0.2%
    diff0170.0%0.2%
    ping23162.4%0.2%
    mkvirtualenv3160.3%0.2%
    alias0160.0%0.2%
    echo2150.2%0.2%
    zip0150.0%0.2%
    mail0140.0%0.2%
    scp0130.0%0.2%
    n0130.0%0.2%
    man0120.0%0.1%
    touch0110.0%0.1%
    which0110.0%0.1%
    gt0100.0%0.1%
    \n0100.0%0.1%
    g0100.0%0.1%
    GEN_PASSWORD0100.0%0.1%
    wc790.7%0.1%
    webpack080.0%0.1%
    ruby080.0%0.1%
    join070.0%0.1%
    gem070.0%0.1%
    crontab070.0%0.1%
    cut070.0%0.1%
    xmllint070.0%0.1%
    protoc070.0%0.1%
    ps070.0%0.1%
    ffmpeg070.0%0.1%
    unzip060.0%0.1%
    sendEmail060.0%0.1%
    airflow050.0%0.1%
    chmod050.0%0.1%
    java050.0%0.1%
    conn050.0%0.1%
    phantomjs640.6%0.0%
    export040.0%0.0%
    traceroute040.0%0.0%
    sdk040.0%0.0%
    textutil040.0%0.0%
    ggl030.0%0.0%
    top030.0%0.0%
    pd030.0%0.0%
    sort030.0%0.0%
    cdjsonifyme030.0%0.0%
    ./grailsw030.0%0.0%
    tunnel_prod030.0%0.0%
    wpd030.0%0.0%
    php030.0%0.0%
    jupyter030.0%0.0%
    code.030.0%0.0%
    fab7007.3%0.0%
    stash1501.6%0.0%
    head500.5%0.0%
    c_do500.5%0.0%
    sh400.4%0.0%
    make400.4%0.0%
    sass300.3%0.0%
    redis-cli300.3%0.0%
    celery300.3%0.0%
    source200.2%0.0%
    sed200.2%0.0%
    redis-server200.2%0.0%
    dig200.2%0.0%