DEV Community

Adrian Mejia
Adrian Mejia

Posted on

What are your top ten command lines?

Run the following command list to find out!

history | cut -c8- | sort | uniq -c | sort -rn | head -n 10
Enter fullscreen mode Exit fullscreen mode

Mine is the following:

image

Since I used a lot of aliases, here is the expanded version:

  1. git status (alias gst)
  2. git push (alias ggpush='git push origin "$(git_current_branch)"')
  3. git commit (alias gca='git commit -v -a')
  4. ls (list files current directory)
  5. code . (opening visual studio in the current folder)
  6. git pull (alias ggpull='git pull origin "$(git_current_branch)"')
  7. .. (go back previous directoy)
  8. grunt serve (alias eos='cd "$LOCKHART"/eos && git pull origin "$(git_current_branch)"; grunt serve')
  9. git checkout master (alias gco='git checkout')
  10. grunt karma:... (run unit tests)

Latest comments (34)

Collapse
 
brettimus profile image
Boots

This is fun!

Also lol they're all git and yarn for me:

 168 gits
  38 yarn dev
  31 yarn
  19 gita
  18 yarn repl
  17 git diff
  12 git pull
  11 git log
  10 gpo
  10 git checkout devel
  • gits is my alias for git status
  • gita is my alias for git add all
  • gpo is my alias for pushing to origin
Collapse
 
amejiarosario profile image
Adrian Mejia

Nice!

Collapse
 
mccurcio profile image
Matt Curcio • Edited

The only that stand out from list are htop and R. haha

gits - git status
htop - see ditty below

Oh lord won't you buy me 32 gigs of ram,
My friends all have 16 I must make amends,
Worked hard all my life time, no help from my friends...
Sung to the tune of Janis Joplin's - Mercedes Benz

cd
ls
gitp - git pull
gita - git add all
xed
git remote
git push
R - Can you tell I do Stats alot?? ;))

Collapse
 
jckuhl profile image
Jonathan Kuhl • Edited

Huh

 165 node challenge.js
  16 cargo run
  13 python3 quadratic2.py
  12 make linkedlist
  11 ls
  11 ./linkedlist
   9 rustc hello.rs
   9 python3 multiply.py
   8 python3 multiply.py 4 -3
   6 python3 numberofcalls.py rumford augusta

Not typical at all. The first one is a set of 50 javascript challenges, so that makes sense.

The second, I was learning Rust for a bit.

The linkedlist was me trying to implement a Linked List in C++, and realizing I don't know C++ well enough to do so.

Last week or so I was playng with Rust and a bit of Python, while working through a JavaScript challenge, so I guess it makes sense, but it's not typical.

It should be the five basic git commands (init, status, add, commit, push), shortcuts I've aliased for my most used directories and clear

Collapse
 
mdhesari profile image
Mohammad Fazel

Ls
..
Code .
Cd d:\
Npm version "1.0.0"
Git status
Git commit --amend --no-edit
Git push
Git pull
Touch index.php

Collapse
 
jyotishman profile image
Jyotishman Saikia

72 gs
50 clear
34 git add .
22 git push origin develop
20 cd
18 cordova run android
14 git pull origin develop
13 code .
11 git push origin master
8 npm start

Collapse
 
david_ojeda profile image
David Ojeda

I don't use aliases :P

Commands

Collapse
 
david_ojeda profile image
David Ojeda

IDE takes care of commands for running/testing app and stuff

Collapse
 
amejiarosario profile image
Adrian Mejia

nice, what IDE are you using that runs git commands for you?

Collapse
 
ifenna__ profile image
Ifenna • Edited
zsh_stats
     1  564  27.6878%    git
     2  178  8.73834%    cd
     3  145  7.11831%    vim
     4  106  5.20373%    sudo
     5  71   3.48552%    ls
     6  68   3.33824%    yay
     7  60   2.94551%    go
     8  56   2.74914%    exit
     9  39   1.91458%    ftm
    10  38   1.86549%    l

yay is my package manager, l is an alias for ls -al and I seem to use vim a lot.

Collapse
 
hammotime profile image
Adam Hammond
  49 ls
  39 terraform apply
  24 docker logs test-container
  22 terraform plan
  20 git status
  16 git push
  12 ./index.sh 
   9 aws-creds status
   8 aws-creds login
   7 cd ..
Collapse
 
amejiarosario profile image
Adrian Mejia

I guess you are in devOps, or at least that's what your commands looks like

Collapse
 
vitorbari profile image
Vitor Bari Buccianti
1. gst
2. gapa
3. ggpush
4. ls
5. exit
6. git diff
7. kubectl get pods
8. clear
9. ggpull
10. ktx
Collapse
 
amejiarosario profile image
Adrian Mejia

Is ktx and alias?

Collapse
 
vitorbari profile image
Vitor Bari Buccianti

"manage kubernetes cluster configs"
github.com/heptiolabs/ktx

Collapse
 
rizzu26 profile image
Rizwan

Its clear that I'm slowly turning into JS developer from iOS developer

 714 l
 382 pod install
 331 clear
 328 cd ..
 319 ls
 273 yarn start
 198 bundle exec pod install
 157 code .
 143 yarn test
 107 yarn run jest -u