Today, I am going to be sharing with you my top 10 command line commands.
First, here’s how I discovered my Top 10:
$ history | awk ‘{print $2}’ | sort | uniq -c | sort -n | tail -10
(We need two sorts because uniq only works the way we want it to on sorted lists.)
And, without further ado, here are my Top 10:
10. nv
An alias for neovim. I used this command 147 times. Surprising, because I am mainly an Emacs user. However, since I generally only open Emacs once per session, it doesn’t show up on this list of commands.
9. gc
An alias for git commit -m . I used this command 161 times.
8. iex
The Elixir interpreter. I used this command 179 times.
7. rm
Used to remove files. I used this command 182 times.
6. git
Self explanatory, but still weird once you see what my #1 is. I used this command 203 times.
5. brew
The MacOS package manager. I used this command 224 times.
4. mix
The Elixir tool. I used this command 250 times.
3. l
An alias for ls -lah . I used this command 278 times.
2. cd
Used to change directories. I used this command 579 times.
1. g
An alias for git (now you see why it’s strange that I also have the unaliased version on this list). I used this command 1173 times.
And that’s it. What are your Top 10?
Update: A first-of-many Skool exclusive! Since writing this article, a new contender in my top 10 has arrived! It is:
dr
Which is my alias for "docker". I also added an alias "m" for "mix", but that hasn't been used as much as needed to show up in my top 10. Yet!