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 :D

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?

About rus

Arrogant, narcissistic and imperatively logical. I first started coding in the mid 80s on an Amstrad 6128, entering games found in the back of Amstrad Action.After watching Hackers and falling in love with Angelina Jolie I installed Slackware 2.0 on a P200 in 1997and spent the next 6-7 years studying computery things at various colleges and universities.Several years later I can now be found in an office premises by day sat in front of a Macbook, using a Windows VM to manage Linux servers, or in a field by night, fire dancing and holding pyrotechnics casually in my hands whilst they explode.

, , ,

banner