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.9k 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.
    • RamblingBipedR
      RamblingBiped
      last edited by

      "sudo !!", "tail -f", the unholy trinity that is "grep/awk/sed", and vim (all from within tmux).

      stacksofplatesS 1 Reply Last reply Reply Quote 2
      • coliverC
        coliver
        last edited by

        @travisdh1 said:

        crtl+r(history search)

        This one I didn't know this will be extremely helpful.

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

          @coliver said:

          @travisdh1 said:

          crtl+r(history search)

          This one I didn't know this will be extremely helpful.

          Ya it's nice, ctrl+a, ctrl+e, and ctrl+d are nice too so you can stay at "home" on the keyboard.

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

            @RamblingBiped said:

            "sudo !!", "tail -f", the unholy trinity that is "grep/awk/sed", and vim (all from within tmux).

            I don't use awk as much as I should, I essentially use it for a glorified csv reader haha

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

              http://www.tecmint.com/20-funny-commands-of-linux-or-linux-is-fun-in-terminal/

              "sl" is one of my favs.

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

                I use SNMPv3 alot from the CLI:

                snmpbulkwalk -v 3 -u myusername -a SHA -A myauthpass -l authPriv -x AES -X myprivpass 10.1.1.1 system
                
                1 Reply Last reply Reply Quote 0
                • quicky2gQ
                  quicky2g
                  last edited by

                  Hardware commands are always great:

                  https://www.maketecheasier.com/gather-hardware-information-in-linux

                  lspci

                  Anything in /proc

                  I LOVE LOVE LOVE htop

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

                    I honestly don't like htop very much. I prefer regular top. I find the output more useful.

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

                      @scottalanmiller said:

                      I honestly don't like htop very much. I prefer regular top. I find the output more useful.

                      htop works much better to see multi-CPU utilization though. Filtering is really nice too.

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

                        @quicky2g said:

                        @scottalanmiller said:

                        I honestly don't like htop very much. I prefer regular top. I find the output more useful.

                        htop works much better to see multi-CPU utilization though. Filtering is really nice too.

                        Ah, I never find CPU utilization to be something that I need to watch. Looks neat and impressive on the screen, but once I know the percentage of CPU, I don't care about seeing a chart, but I need to see load numbers, processes and memory stats.

                        1 Reply Last reply Reply Quote 0
                        • MattSpellerM
                          MattSpeller
                          last edited by

                          I use dd a lot

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

                            @MattSpeller said:

                            I use dd a lot

                            boobs

                            MattSpellerM 1 Reply Last reply Reply Quote 0
                            • MattSpellerM
                              MattSpeller @stacksofplates
                              last edited by

                              @johnhooks said:

                              @MattSpeller said:

                              I use dd a lot

                              boobs

                              80085?

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

                                @MattSpeller said:

                                @johnhooks said:

                                @MattSpeller said:

                                I use dd a lot

                                boobs

                                80085?

                                8008135

                                MattSpellerM 1 Reply Last reply Reply Quote 3
                                • Minion QueenM
                                  Minion Queen
                                  last edited by

                                  ok so looking through the list of new posts.... this caught my eye fast 😳

                                  MattSpellerM 1 Reply Last reply Reply Quote 2
                                  • MattSpellerM
                                    MattSpeller @stacksofplates
                                    last edited by

                                    @johnhooks said:

                                    @MattSpeller said:

                                    @johnhooks said:

                                    @MattSpeller said:

                                    I use dd a lot

                                    boobs

                                    80085?

                                    8008135

                                    what was the one you had to hold the thing upside down for... oh geez lol

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

                                      @MattSpeller said:

                                      @johnhooks said:

                                      @MattSpeller said:

                                      @johnhooks said:

                                      @MattSpeller said:

                                      I use dd a lot

                                      boobs

                                      80085?

                                      8008135

                                      what was the one you had to hold the thing upside down for... oh geez lol

                                      ha 7734

                                      1 Reply Last reply Reply Quote 1
                                      • MattSpellerM
                                        MattSpeller @Minion Queen
                                        last edited by

                                        @Minion-Queen said:

                                        ok so looking through the list of new posts.... this caught my eye fast 😳

                                        😇

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

                                          List disk info (Lowercase L)

                                          fdisk -l
                                          

                                          List hard drive model, serial and capabilities:

                                          hdparm -I /dev/sda
                                          

                                          Hard drive speed:

                                          hdparm -t /dev/sdd
                                          

                                          Hard drive temperature:

                                          hddtemp -u C -n /dev/sda
                                          

                                          What software a web server is running:

                                          curl -I http://www.newegg.com
                                          

                                          Kernel buffer messages:

                                          dmesg
                                          

                                          File transfer with active speed:

                                          rsync --progress --recursive source/* destincation
                                          

                                          Ping sweep a network with NMAP and just show up IP's:

                                          sudo nmap -PO -sP -PE -n --open -v 10.1.1.1-10 | grep "scan report" | grep -v "host down" | sed 's/Nmap scan report for //g'
                                          

                                          Only show down/available IP's:

                                          sudo nmap -PO -sP -PE -n --open -v 10.1.1.1-10 | grep "host down" | sed 's/Nmap scan report for //g' | sed 's/ \[host down\]//g'
                                          

                                          Ping a TCP port:

                                          nping --tcp -p 80,443 www.newegg.com
                                          

                                          Stress test packets per second with ICMP (5,000 pings sent at rate of 100k per second):

                                          nping --icmp 10.1.1.1 --rate 100000 -c 5000
                                          

                                          QoS EF ping:

                                          ping -Q 0xB8 10.1.1.1
                                          

                                          Packet capture (CTRL + C when done):

                                          sudo tcpdump -i eth0 -w testing.pcap
                                          

                                          View a packet capture for ICMP:

                                          tcpdump -r testing.pcap -nnvvvSe | grep ICMP
                                          

                                          That's about all I got right now.

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

                                            Some "not so standard" useful IP address stuff:

                                            ip addr show eth0
                                            ip -s link show eth0
                                            
                                            dafyreD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post