ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Favorite Linux Commands

    Scheduled Pinned Locked Moved IT Discussion
    funcommand linecommandslinux
    74 Posts 20 Posters 15.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • travisdh1T
      travisdh1
      last edited by

      @scottalanmiller Have you tried glances yet? Just curious.

      1 Reply Last reply Reply Quote 1
      • scottalanmillerS
        scottalanmiller
        last edited by

        No, I have not.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Running it now...

          1 Reply Last reply Reply Quote 2
          • quicky2gQ
            quicky2g
            last edited by quicky2g

            Really liking glances.

            My Ubuntu install:

            sudo apt-get install python-pip build-essential python-dev
            sudo pip install --upgrade glances
            sudo pip install bottle
            

            Optional for hardware sensors:

            sudo apt-get install lm-sensors
            sudo pip install PySensors
            

            Just running "glances" at cli got me the interface. Web server worked like this:

            sudo glances -w -B 10.1.1.1
            

            Worked at http://10.1.1.1:61208

            Ran a few simultaneous web server instances in the background for local network and Hamachi:

            sudo glances -w -B 10.1.1.1 &
            sudo glances -w -B 25.25.25.25 &
            

            Definitely going into rc.local now.

            Anyone get https working?

            stacksofplatesS 1 Reply Last reply Reply Quote 1
            • stacksofplatesS
              stacksofplates @quicky2g
              last edited by

              @quicky2g said:

              Really liking glances.

              My Ubuntu install:

              sudo apt-get install python-pip build-essential python-dev
              sudo pip install --upgrade glances
              sudo pip install bottle
              

              Optional for hardware sensors:

              sudo apt-get install lm-sensors
              sudo pip install PySensors
              

              Just running "glances" at cli got me the interface. Web server worked like this:

              sudo glances -w -B 10.1.1.1
              

              Worked at http://10.1.1.1:61208

              Ran a few simultaneous web server instances in the background for local network and Hamachi:

              sudo glances -w -B 10.1.1.1 &
              sudo glances -w -B 25.25.25.25 &
              

              Definitely going into rc.local now.

              Anyone get https working?

              That's really nice. I've never used the web version before, just the cli.

              travisdh1T 1 Reply Last reply Reply Quote 1
              • travisdh1T
                travisdh1 @stacksofplates
                last edited by

                @johnhooks said:

                @quicky2g said:

                Really liking glances.

                My Ubuntu install:

                sudo apt-get install python-pip build-essential python-dev
                sudo pip install --upgrade glances
                sudo pip install bottle
                

                Optional for hardware sensors:

                sudo apt-get install lm-sensors
                sudo pip install PySensors
                

                Just running "glances" at cli got me the interface. Web server worked like this:

                sudo glances -w -B 10.1.1.1
                

                Worked at http://10.1.1.1:61208

                Ran a few simultaneous web server instances in the background for local network and Hamachi:

                sudo glances -w -B 10.1.1.1 &
                sudo glances -w -B 25.25.25.25 &
                

                Definitely going into rc.local now.

                Anyone get https working?

                That's really nice. I've never used the web version before, just the cli.

                Just shows how little I've actually dug into it beyond running sensor-config first, I didn't realize it had another display available. The command line version works so well, and it made so I wasn't jumping between top, iftop and iotop all the time. I was a happy geek.

                quicky2gQ 1 Reply Last reply Reply Quote 1
                • quicky2gQ
                  quicky2g @travisdh1
                  last edited by

                  @travisdh1 said:

                  @johnhooks said:

                  @quicky2g said:

                  Really liking glances.

                  My Ubuntu install:

                  sudo apt-get install python-pip build-essential python-dev
                  sudo pip install --upgrade glances
                  sudo pip install bottle
                  

                  Optional for hardware sensors:

                  sudo apt-get install lm-sensors
                  sudo pip install PySensors
                  

                  Just running "glances" at cli got me the interface. Web server worked like this:

                  sudo glances -w -B 10.1.1.1
                  

                  Worked at http://10.1.1.1:61208

                  Ran a few simultaneous web server instances in the background for local network and Hamachi:

                  sudo glances -w -B 10.1.1.1 &
                  sudo glances -w -B 25.25.25.25 &
                  

                  Definitely going into rc.local now.

                  Anyone get https working?

                  That's really nice. I've never used the web version before, just the cli.

                  Just shows how little I've actually dug into it beyond running sensor-config first, I didn't realize it had another display available. The command line version works so well, and it made so I wasn't jumping between top, iftop and iotop all the time. I was a happy geek.

                  The mobile version is pretty slick too. Only reason I tried the web version was because of the screenshot on their website:

                  https://nicolargo.github.io/glances/

                  1 Reply Last reply Reply Quote 2
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    I like...

                    du -shx * | sort -n
                    
                    1 Reply Last reply Reply Quote 2
                    • stacksofplatesS
                      stacksofplates
                      last edited by stacksofplates

                      So @travisdh1 reminded me of it this morning, but I use watch a lot. I also use pv because no one likes sitting and waiting for dd to finish and not know your progress.

                      1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        Haven't used PV. I do use watch a bit.

                        Because of this thread I've been conditioning myself to use glances. It really is very useful.

                        stacksofplatesS travisdh1T 2 Replies Last reply Reply Quote 2
                        • stacksofplatesS
                          stacksofplates @scottalanmiller
                          last edited by

                          @scottalanmiller said:

                          Haven't used PV. I do use watch a bit.

                          Because of this thread I've been conditioning myself to use glances. It really is very useful.

                          That's really all I use pv for, I know people use it for other stuff, but that's all I really need it for.

                          travisdh1T 1 Reply Last reply Reply Quote 0
                          • travisdh1T
                            travisdh1 @scottalanmiller
                            last edited by

                            @scottalanmiller said:

                            Haven't used PV. I do use watch a bit.

                            Because of this thread I've been conditioning myself to use glances. It really is very useful.

                            Glad to hear someone else like it!

                            1 Reply Last reply Reply Quote 0
                            • travisdh1T
                              travisdh1 @stacksofplates
                              last edited by

                              @johnhooks So, you just use

                              pv dd if=/dev/urandom of=/dev/sda bs=512k
                              

                              That's actually really handy.

                              stacksofplatesS 1 Reply Last reply Reply Quote 0
                              • stacksofplatesS
                                stacksofplates @travisdh1
                                last edited by stacksofplates

                                @travisdh1 said:

                                @johnhooks So, you just use

                                pv dd if=/dev/urandom of=/dev/sda bs=512k
                                

                                That's actually really handy.

                                YOu have to pipe it in, it's a strange syntax

                                dd if=/dev/zero | pv | dd of=/dev/sda
                                

                                Also any flags or arguments go before the first pipe.

                                travisdh1T 1 Reply Last reply Reply Quote 2
                                • scottalanmillerS
                                  scottalanmiller
                                  last edited by

                                  Very odd indeed.

                                  1 Reply Last reply Reply Quote 1
                                  • travisdh1T
                                    travisdh1 @stacksofplates
                                    last edited by

                                    @johnhooks said:

                                    @travisdh1 said:

                                    @johnhooks So, you just use

                                    pv dd if=/dev/urandom of=/dev/sda bs=512k
                                    

                                    That's actually really handy.

                                    YOu have to pipe it in, it's a strange syntax

                                    dd if=/dev/zero | pv | dd of=/dev/sda
                                    

                                    Also any flags or arguments go before the first pipe.

                                    That is a bit odd. Still handy tho.

                                    1 Reply Last reply Reply Quote 1
                                    • stacksofplatesS
                                      stacksofplates
                                      last edited by

                                      Sample output.

                                      0_1453990597889_Screenshot 2016-01-28 at 9.16.16 AM.png

                                      1 Reply Last reply Reply Quote 2
                                      • LakshmanaL
                                        Lakshmana
                                        last edited by

                                        My favourite linux command is "ls"
                                        "cd"

                                        stacksofplatesS 1 Reply Last reply Reply Quote 0
                                        • stacksofplatesS
                                          stacksofplates @Lakshmana
                                          last edited by

                                          @Lakshmana said:

                                          My favourite linux command is "ls"
                                          "cd"

                                          I use those quite a bit also.

                                          travisdh1T 1 Reply Last reply Reply Quote 1
                                          • travisdh1T
                                            travisdh1 @stacksofplates
                                            last edited by

                                            @johnhooks said:

                                            @Lakshmana said:

                                            My favourite linux command is "ls"
                                            "cd"

                                            I use those quite a bit also.

                                            I use them all the time, doesn't mean I like them. At least ls is shorter than dir.

                                            brianlittlejohnB 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post