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.
    • 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
                          • stacksofplatesS
                            stacksofplates
                            last edited by stacksofplates

                            I use ^ quite frequently any more.

                            1 Reply Last reply Reply Quote 0
                            • EddieJenningsE
                              EddieJennings
                              last edited by

                              free -h

                              black3dynamiteB 1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @EddieJennings
                                last edited by

                                @eddiejennings said in Favorite Linux Commands:

                                free -h

                                I tend to use free -hm

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

                                  cat <<EOF | sudo tee /home/user/Documents/hello-MangoLassi.txt
                                  Hello MangoLassi!
                                  EOF
                                  1 Reply Last reply Reply Quote 0
                                  • wirestyle22W
                                    wirestyle22
                                    last edited by

                                    history as of late 😕 lol

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

                                      @wirestyle22 said in Favorite Linux Commands:

                                      history as of late 😕 lol

                                      ctrl + r Searches typed query in command history.

                                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @travisdh1
                                        last edited by

                                        @travisdh1 said in Favorite Linux Commands:

                                        @wirestyle22 said in Favorite Linux Commands:

                                        history as of late 😕 lol

                                        ctrl + r Searches typed query in command history.

                                        Pretty much this. Use it all the time.

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

                                          @jaredbusch said in Favorite Linux Commands:

                                          @travisdh1 said in Favorite Linux Commands:

                                          @wirestyle22 said in Favorite Linux Commands:

                                          history as of late 😕 lol

                                          ctrl + r Searches typed query in command history.

                                          Pretty much this. Use it all the time.

                                          I've been using ZSH and I have it automatically do that.

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

                                            @stacksofplates said in Favorite Linux Commands:

                                            @jaredbusch said in Favorite Linux Commands:

                                            @travisdh1 said in Favorite Linux Commands:

                                            @wirestyle22 said in Favorite Linux Commands:

                                            history as of late 😕 lol

                                            ctrl + r Searches typed query in command history.

                                            Pretty much this. Use it all the time.

                                            I've been using ZSH and I have it automatically do that.

                                            So as I type it dynamically auto suggests things. Then just hit ctrl+e to auto complete.

                                            0_1522599044824_auto.png

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