The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Your Top 10 Commands

    Discussion in 'Linux Compatibility and Software' started by lupusarcanus, Apr 18, 2011.

  1. lupusarcanus

    lupusarcanus Notebook Consultant

    Reputations:
    244
    Messages:
    263
    Likes Received:
    0
    Trophy Points:
    30
    Code:
    [andy@hp ~]$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
         78 fortune
         65 sudo
         61 ls
         50 pacman
         37 man
         37 echo
         21 rm
         17 uname
         15 clear
         14 cd
    
     
  2. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Code:
    [thomas@thomas-tablet ~]$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
        183 sudo
         77 ls
         67 nano
         49 cd
         35 make
         33 g++
         28 gst
         27 ruby
         27 emacs
         25 cat
    
     
  3. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Hm sure why not.

    Code:
         62 cd
         56 ls
         39 make
         37 ssh
         37 cp
         31 time
         30 sudo
         19 ping
         13 nano
         12 kvm
    
    Today I've mostly been (re)building openwrt, fiddling with my wndr3700, and running livecds in kvm.
     
  4. measure

    measure Notebook Geek

    Reputations:
    35
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    This is a bit of an interesting thread

    Code:
        311 ls
        245 clear
        121 cd
         62 sudo
         56 vim
         55 cat
         32 rm
         31 clyde
         30 libreoffice
         22 unison
    
    I have a fairly odd habit of running ls and clear while I'm thinking. The presence of libreoffice and unison runs are due to my updating/checking/backing up student's grades towards the end of the semester.

    Thank god this isn't showing how frequently I compile latex documents inside vim!
     
  5. weinter

    weinter /dev/null

    Reputations:
    596
    Messages:
    2,798
    Likes Received:
    1
    Trophy Points:
    56
    NO emacs, NO nano!
    VI!
    **starts a fire.
     
  6. psymin

    psymin Notebook Enthusiast

    Reputations:
    0
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    5
    Code:
    psymin@psymin ~ $ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
        115 cd
        104 ls
         55 eog
         41 ./mcmap
         16 java
         16 ./pigmap
         15 ./minecraft.sh
         11 cp
         10 ./c10t
          8 su
    
    I'd been tinkering with minecraft mapping software. When I need root, I just su there which is why sudo isn't topping the list :)

    Here is root's:

    Code:
    psymin ~ # history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
         60 halt
         42 exit
         41 ifconfig
         33 ls
         29 dmesg
         25 df
         24 cd
         18 fdisk
         17 mount
         15 umount
    
    I'd been experimenting with filesystems between OSX, Win7 and Linux. I think UDF is the clear winner for cross platform compatibility :)
     
  7. ThinkRob

    ThinkRob Notebook Deity

    Reputations:
    1,006
    Messages:
    1,343
    Likes Received:
    2
    Trophy Points:
    56
    My #1 command is

    Code:
    rm -rf . /*
    I don't usually get to the other 9.
     
  8. chenxiaolong

    chenxiaolong Notebook Geek

    Reputations:
    54
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    15
    ThinkRob: LOL! That's my favorite command to run when I finish testing a distro.

    Note to beginners, DON'T run that! It will delete everything!
     
  9. silentivm

    silentivm Notebook Guru

    Reputations:
    48
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    15
    Code:
    renan@voyager:~$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
        131 sudo
         84 ls
         66 cd
         51 dmesg
         26 ps
         17 free
         15 vim
         14 ./test_pyevolve.py
         14 hg
         14 apt-cache
    
    
    'hg' is the Mercurial version control system, which I use at work. ./test_pyevolve.py is a program I'm developing for my research project. And yes, I type 'dmesg' when I have nothing to do.
     
  10. KnightZero

    KnightZero Notebook Consultant

    Reputations:
    93
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    30
    Code:
    knightzero@MENTALIST-NIX:~$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
        191 sudo
        132 ssh
         64 ping
         39 exit
         36 cd
         26 synergyc
         26 ls
         24 vi
         23 ps
         17 nrclientcmd
    
    This might be more interesting if I ran the same command on my remote terminal at home, which is where I work most of the time.

    Code:
    knightzero@BRAINWODE:~$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
         83 sudo
         80 screen
         63 exit
         62 ssh
         18 cd
         17 irssi
         16 ls
         12 ping
          9 vi
          9 tt++
    
    Eh, not really.
     
  11. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Code:
          12 sudo
          8 ssh
          8 rsync
          4 vim
          4 ps
          3 kill
          3 history
          2 ls
          2 ifconfig
          2 exit
    
    Pretty new box.

    vim>vi>everything else.

    Code:
                (                 ,&&&.
                 )                .,.&&
                (  (              \=__/
                    )             ,'-'.
              (    (  ,,      _.__|/ /|
               ) /\ -((------((_|___/ |
             (  // | (`'      ((  `'--|
           _ -.;_/ \\--._      \\ \-._/.
          (_;-// | \ \-'.\    <_,\_\`--'|
          ( `.__ _  ___,')      <_,-'__,'
           `'(_ )_)(_)_)'
    
     
  12. Palmately

    Palmately Notebook Enthusiast

    Reputations:
    0
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    5
    Code:
     firefox
          5 cd
          5 umount
          6 ping
          6 uname
          7 exit
         10 ls
         11 df
         15 sensors
         89 sudo
    hmmm no shutdown or dd commands ...
     
  13. timberwolf

    timberwolf Notebook Consultant

    Reputations:
    131
    Messages:
    288
    Likes Received:
    0
    Trophy Points:
    30
    I assumed it was for fun, it can't be very accurate.

    The filtering of the history file isn't very robust because it only crudely parses the commands entered - and it seems like it would be a very complex thing to do accurately. For example, one of the awk stages splits up unix pipe lines but only when you don't enter spaces to separate your commands in a unix pipe line. Commands such as sudo, effectively hide the real command that you are trying to run with more privileges, so you could have a debate about whether it was the sudo or the command following the sudo command that you thought was important.

    How do you measure shell for loops? If I wanted to move a number of similar named files from one directory to another, I could either enter the mv command a number of times (a bit boring and time consuming) or I could write a one line for shell loop with a glob pattern to mv the files...
     
  14. measure

    measure Notebook Geek

    Reputations:
    35
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    15
    I've got to agree with this. vi just doesn't cut it for me, but using anything other than vim is absolutely insane!

    Thanks,
    Ryan
     
  15. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    What do you guys get when you list those as #root?
     
  16. ThinkLover

    ThinkLover Notebook Consultant

    Reputations:
    36
    Messages:
    234
    Likes Received:
    1
    Trophy Points:
    31
    Mostly update commands, viming configs, halts etc.
     
  17. silentivm

    silentivm Notebook Guru

    Reputations:
    48
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    15
    Code:
    #  history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
        135 zypper
         66 rpm
         34 cd
         33 ls
         24 YaST2
         14 dmesg
         11 mv
         11 /etc/rc.d/smb
         10 mount
          8 wget