LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Share Your Top 10 Linux Commands... (https://www.linuxquestions.org/questions/linux-general-1/share-your-top-10-linux-commands-4175470991/)

aihaike 07-28-2013 07:07 PM

locally:
1 100 20% ls
2 95 19% nedit
3 87 17.4% cd
4 22 4.4% bg
5 18 3.6% mv
6 15 3% rm
7 14 2.8% wget
8 13 2.6% cat
9 11 2.2% cp
10 6 1.2% pwd

remotely:
1 233 28.6241% ls
2 147 18.059% cd
3 29 3.56265% make
4 19 2.33415% nvidia-smi
5 19 2.33415% find
6 16 1.9656% source
7 16 1.9656% mpirun
8 14 1.7199% whereis
9 14 1.7199% mdrun_mpi
10 13 1.59705% rm

and

1 160 23.2221% ls
2 126 18.2874% cd
3 54 7.83745% bjobs
4 46 6.67634% make
5 30 4.35414% cat
6 14 2.03193% cp
7 14 2.03193% bsub
8 11 1.59652% pwd
9 10 1.45138% for
10 8 1.1611% tail

astrogeek 07-28-2013 07:39 PM

Code:

   
    1  102  20.4%  vi
    2  53  10.6%  ls
    3  41  8.2%  man
    4  34  6.8%  ps
    5  30  6%    fg
    6  22  4.4%  jobs
    7  14  2.8%  cd
    8  12  2.4%  rm
    9  12  2.4%  cat
    10  9    1.8%  cp

I have been busy with a shell project that involves much use of fifos the past few days, which probably skews the man and rm a little higher than normal.

I think I will add a shell to my tmux startup script to run this each time I login, just for fun.

goumba 08-04-2013 06:28 AM

anthony@serenity:~/tmp$ 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
1 164 16.4% sudo
2 159 15.9% ssh
3 143 14.3% emacs
4 72 7.2% exit
5 68 6.8% cd
6 29 2.9% kill
7 25 2.5% ls
8 24 2.4% man
9 24 2.4% apt-cache
10 15 1.5% rm

The abundance of kill is due to the fact one PC at work is a P4 2.8 and Iceweasel can bring the system to a crawl, X no longer responds and I have to switch to a VT and kill it.


All times are GMT -5. The time now is 09:43 AM.