## What are your top ten cli commands used?

```

history | awk '{cmd[$2]++} END {for(elem in cmd) {print cmd[elem] " " elem}}' | sort -n -r | head -10

```

Then add aliases and functions for them in your .bashrc 😉

Reply to this note

Please Login to reply.

Discussion

99 cd

74 mc

41 git

39 screen

27 ls

26 make

15 ./nostr-relay

14 quake2.sh

14 pip3

13 lzma

alias top10="history | awk '{cmd[\$2]++} END {for(elem in cmd) {print cmd[elem] \" \" elem}}' | sort -n -r | head -10"

This one worked! And thank you.

Pretty sure cd and ls are top of most people. 🤙

quake2.sh 👀 Nice!

Yes, including Quake1. But only digital. Quake3-Arena I have a metal-box Linux version here. :)

159 cd

141 ls

133 sudo

96 ssh

78 exit

50 nvim

23 git

20 clear

19 go

15 rm

236 vim

170 pm2

112 tail

111 git

60 clear