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

    Favorite Linux Commands

    IT Discussion
    fun command line commands linux
    20
    74
    14.5k
    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.
    • 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
                            • stacksofplatesS
                              stacksofplates
                              last edited by

                              This is also helpful, diff is confusing unless you use some flags.

                              diff -y -W 70 file file2
                              

                              It makes viewing changes much easier. Below is a screenshot. The pipe shows there is a difference in the line, and the < or > show that there is a line added or subtracted.

                              0_1453991681225_Screenshot 2016-01-28 at 9.33.27 AM.png

                              1 Reply Last reply Reply Quote 1
                              • brianlittlejohnB
                                brianlittlejohn @travisdh1
                                last edited by

                                @travisdh1 said:

                                @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.

                                I always end up typing dir on my linux machines and ls on my windows machines.... it just frustrates me...

                                RamblingBipedR 1 Reply Last reply Reply Quote 1
                                • NicN
                                  Nic
                                  last edited by

                                  Back in the day, one of my faves was "rn" 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • RamblingBipedR
                                    RamblingBiped @brianlittlejohn
                                    last edited by

                                    @brianlittlejohn Switch to powershell and always use "ls"

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

                                      This thread deserves more attention than it gets. I was getting annoyed with dd and no status display today (lots of Raspberry Pis to image.) This time I know the exact size of the sd cards being imaged tho, so pv is very helpful.

                                      dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 bs=4k

                                      [root@localhost comtech]# dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0
                                      ^[34MiB 0:01:37 [ 249KiB/s] [==>                                                                        ]  2% ETA 1:17:2
                                      
                                      dafyreD 1 Reply Last reply Reply Quote 3
                                      • dafyreD
                                        dafyre @travisdh1
                                        last edited by

                                        @travisdh1 said in Favorite Linux Commands:

                                        This thread deserves more attention than it gets. I was getting annoyed with dd and no status display today (lots of Raspberry Pis to image.) This time I know the exact size of the sd cards being imaged tho, so pv is very helpful.

                                        dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0 bs=4k

                                        [root@localhost comtech]# dd if=/home/comtech/rpi.img | pv -s 16g | dd of=/dev/mmcblk0
                                        ^[34MiB 0:01:37 [ 249KiB/s] [==>                                                                        ]  2% ETA 1:17:2
                                        

                                        This isn't installed by default on some systems, but i easy & quick to add.

                                        1 Reply Last reply Reply Quote 0
                                        • dbeatoD
                                          dbeato
                                          last edited by

                                          Mine has been grep and cat.

                                          1 Reply Last reply Reply Quote 1
                                          • black3dynamiteB
                                            black3dynamite
                                            last edited by

                                            When I want to use virt-manager from my Mac.

                                            ssh -Y username@ip-address
                                            virt-manager &
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post