DEV Community

Discussion on: What are your five most used terminal commands?

Collapse
 
moopet profile image
Ben Sinclair

On my work Mac:

     1  143  28.6%  git
     2  68   13.6%  vi
     3  52   10.4%  shore-site
     4  46   9.2%   cd
     5  39   7.8%   rg

(shore-site is a part of a development environment suite my company uses internally, basically a fancy-pants way of controlling docker instances)

On my nearest VPS:

     1  135  13.5%  sudo
     2  115  11.5%  tmux
     3  107  10.7%  cd
     4  105  10.5%  ls
     5  74   7.4%   vi

This stuff is quite hard to compare, because

  • I live in Vim and you don't get to see the commands I run from there
  • remote servers have a lot hidden behind sudo
  • I have multiple terminal sessions open at any one time on the same machine but don't share history between them

Also I'm betting things like head and grep get used a lot more than this reports but won't show up because they're fed from a pipe.