Share Your Top 10 Linux Commands...
Share your top 10 Linux commands. It's easy to do this from the command line. Just copy and paste this code snippet, and then let us know your results!
Code:
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 Code:
john@breezy:~$ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 P.S. I found a similar thread like this from a long time ago, but it was a little different. (http://www.linuxquestions.org/questi...mmands-180329/) |
I get
Code:
1 110 16.0116% ls Code:
gnome-terminal -e "su -" Code:
1 161 30.9615% cp |
Interesting! Here is mine.
Code:
$ history | awk '{CMD[$4]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' \\ Code:
# history | awk '{CMD[$4]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' \\ |
Code:
1 261 26.1% cd |
Interesting!
My dev box: Code:
1 268 26.8% cd |
As a regular user
Code:
1 143 30.4904% cd Code:
1 12 26.087% vi |
Code:
bind '"\e[A": history-search-backward' Indispensable for sysadmins. |
As user, I get
Code:
1 191 38.2% ping <----My ISP had some problems last week. Code:
1 79 15.8% ls |
Hey :) interesting thread, seeing what others use.
Heres mine: Quote:
On another machine that im logged into mostly as root through a terminal: Quote:
Im suprised that "." made the list. |
Quote:
|
Nice thread :)
Normal user Code:
1 125 25% ls Code:
1 178 35.6713% ls |
What a nifty idea for a thread. I found it interesting to look over my own usage as well as others'.
$: Code:
Code:
|
$:
Code:
1 102 20.4% ls Code:
1 112 22.4% ls I have export HISTTIMEFORMAT="%y/%m/%d %T " set in my regular user .bashrc, so I had to change the awk command from CMD($2) to CMD($4). |
Here are mine.
Code:
1 110 13.269% ping |
Quote:
|
All times are GMT -5. The time now is 10:46 PM. |