10 Most Used Linux Commands

Whilst skimming my Bash history today looking for an esoteric one liner I’d written earlier I started to ponder what my most used commands were, it’s easy enough to find out! This is actually output from my Mac, not a Linux box, I tricked you 😀

Chill:~ rus$ history | awk {'print $2'} | sort | uniq -c | sort -nr | head -n 10
106 ssh
49 ls
44 cd
42 curl
34 scp
25 vi
15 mv
15 cp
12 grep
10 rm

ssh looks to be number one, which is understandable as I do a lot of work on remote machines.. so what does my usage pattern on remote servers look like?

root@xflipnag2:~# history | awk {'print $2'} | sort | uniq -c | sort -nr | head -n 10
211 vi
160 ls
150 cd
89 svn
39 grep
38 ps
28 cat
24 /usr/lib/nagios/plugins/check_http
24 puppet
20 puppetapply

This time it really is a Linux box, running OEl6 if you must know! Pretty similar, it’s a monitoring node so recently I’ve been using the check_http command to run some HTTP tests. Puppetapply is an alias of ours to run Puppet in a manner that will make changes, by default it runs noop.

It’s nice to see grep rocking, one of my favourite commands really. Though I’m surprised sed hasn’t shown up anywhere!

What are your 10 most used commands?

Leave a Reply

Your email address will not be published. Required fields are marked *