Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
Like Tree15Likes
Here is some real world stat about frequently executed Linux commands - just for fun Webminal...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738

    Cool Frequently Used Linux Commands - A Real World Statistics


    Here is some real world stat about frequently executed Linux commands - just for fun

    Webminal
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,167
    I never use clear or who. After all, I'm the only user of my system. I've never heard of ll - what does it do?

    Apart from that, they are very much the commands that I use.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    779
    Quote Originally Posted by hazel View Post
    I never use clear or who. After all, I'm the only user of my system. I've never heard of ll - what does it do?

    Apart from that, they are very much the commands that I use.
    ll is a bash alias for ls -l, which is set by default on RHEL/Fedora distros. It's the best thing ever.

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    I'm not a big fan of 'll' - used to do 'ls -l' And use 'clear' (or ctrl+l) often. Quite surprised to see 'dir' on that list ,its definitely not my frequently used command. Just wondering why people use 'dir' instead of simple 'ls'? anyone here use 'dir' often ?

    Seems like the most common error command is "cd.."
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  5. #5
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,628
    Interesting! I'd have thought 'cd' would have been the top command. Using the below command, here's mine...
    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
        
         1	85  17.3116%   sudo
         2	77  15.6823%   cd
         3	43  8.75764%   ssh
         4	41  8.35031%   ls
         5	34  6.92464%   locate
         6	29  5.90631%   htop
         7	26  5.29532%   df
         8	20  4.07332%   vncserver
         9	9   1.83299%   whois
        10	7   1.42566%   winecfg
    Linux Mint + IceWM Registered:#371367 New Members: click here

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    I'd have thought 'cd' would have been the top command.
    Dapper Dan, May be once user moved into a directory. They just perform some task there and check them.
    Note above stats doesn't count things like 'cd /home/laks' as 'cd' - similarly 'ls -l /home/laks' not counted as 'ls' or 'ls -l'.

    Its funny to assume user behavior with their history - From your (desktop?) output - here is my guess
    HTML Code:
    Mostly you login as normal user (not root) .  seems like you move a lot between directories and other remote machines. 
    You are concerned about memory usage and disk usage - may be having low memory machine ? 
    You also login from outside world into your local desktop frequently. Have some windows application running
    Just wondering why you use locate often

    Here is my output :
    Code:
       1	135  13.5%  vim
         2	133  13.3%  gcc
         3	122  12.2%  ls
         4	52   5.2%   cd
         5	47   4.7%   less
         6	43   4.3%   grep
         7	38   3.8%   exit
         8	35   3.5%   cat
         9	29   2.9%   python
        10	25   2.5%   sudo
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  7. #7
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,309
    Interesting. Here is mine on a reasonably new installation (< 2 months).

    Code:
         1	109  40.9774%  sudo
         2	23   8.64662%  cd
         3	22   8.27068%  ls
         4	12   4.51128%  ps
         5	9    3.38346%  killall
         6	8    3.00752%  chmod
         7	4    1.50376%  rm
         8	4    1.50376%  lsmod
         9	4    1.50376%  kill
        10	3    1.12782%  mount
    I was surprised by some of the commands in there so I had a look for the top 20. It seems that some of the more expected commands will soon start to appear. I guess that this top 10 is caused by the fun I had with July's SolydXK update pack!
    Lakshmipathi and adnan360 like this.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  8. #8
    Linux Newbie jkwilborn's Avatar
    Join Date
    Nov 2012
    Posts
    173
    Dapper Dan, thanks for the command line using awk, this type of thing is very informative to us 'newbies' learning what can be done with a good knowledge of Linux.

    Using your command, as I've just re-installed a AMD-64 bit Linux one week ago, I have this result...

    Code:
         1	80  23.6686%   sudo
         2	47  13.9053%   ls
         3	29  8.57988%   man
         4	26  7.69231%   cat
         5	25  7.39645%   cd
         6	17  5.02959%   df
         7	15  4.43787%   lst
         8	13  3.84615%   emacs
         9	12  3.5503%    scanimage
        10	9   2.66272%   echo
    That is slick...

    Thanks

    Jack
    elija and Lakshmipathi like this.

  9. #9
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,738
    Elija, Seems like you often kill whole bunch of related to processes . lsmod - Recently had any issues with kernel modules or just checking something?

    Jack, what's lst?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  10. #10
    Linux Newbie jkwilborn's Avatar
    Join Date
    Nov 2012
    Posts
    173
    Lakshmipathi, just an alias for "ls -la", I've changed it to ll as a default.... Sorry I should have caught that....

    Jack
    Lakshmipathi likes this.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •