Linux Crash Course - Easy Terminal Commands for Inspecting Hardware

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 49

  • @jaqian
    @jaqian ปีที่แล้ว +11

    3:35 lsusb
    7:10 lspci
    9:46 lshw
    10:10 sudo !!
    14:12 lscpu
    14:58 lsblk

  • @jrommeke
    @jrommeke ปีที่แล้ว +6

    Just donated, hoping you will be able to maintain this very informative channel for many years to come. 👍

  • @Prophes0r
    @Prophes0r ปีที่แล้ว +7

    You went into some operators for most commands other than *lspci* .
    It is worth quickly talking about:
    -s
    Which is the "select" operator. After you use the basic lspci command, you run it again with -s and the ##:##:... of the device you want more info of. Usually with the operator below. You can also use it with just the domain (first digits) or domain:bus to list all the devices that are part of that domain/bus.
    -v (or -vv or -vvv but these usually have too much info to be useful.)
    Which is for verbose output. You really only want to do this in combination with the -s command otherwise you will get absolutely flooded.
    Why would you want to do this?
    Let's say you want to know what version of PCIe a card says it can use?
    It will also tell you what version of PCIe it is ACTUALLY using. Ex. a PCIe 4.0 card in a 3.0 slot.
    It will show you how many lanes the card can use, and how many it is actually using which is useful because not all physical x16 slots actually have 16 lanes. Or, sometimes lanes get split between slots automatically, and this will show you how many are actually being used. Ex. a card can report itself as x16 but it might be using x8 lanes.
    Finally, it will show you what driver and kernel modules are currently being used for the device. This can be SUPER useful while troubleshooting. Sometimes a device will still be using a default driver that you didn't even know was included after you install a specific driver.
    Example: (with MANY lines removed to make this readable...)
    # lspci -vv -s 05:00
    05:00.0 Non-Volatile memory controller: Intel Corporation NVMe Optane Memory Series
    Subsystem: Intel Corporation NVMe Optane Memory Series
    ...
    IOMMU group: 33
    ...
    Capabilities: [60] Express (v2) Endpoint, MSI 00
    LnkCap: Port #0, Speed 8GT/s, Width x2, ASPM L1, Exit Latency L1 unlimited
    ...
    LnkSta: Speed 5GT/s (downgraded), Width x1 (downgraded)
    ...
    Kernel driver in use: nvme
    Kernel modules: nvme
    As we can see. This is an Intel Optane NVMe SSD.
    This is a 16GiB M10 drive.
    LnkCap - The drive reports it can use 8GT/s, which is PCIe 3.0 [1] , and x2 lanes which is consistent with the specifications.[2]
    LnkSta - But we can see that it is CURRENTLY connected at 5GT/s, which is PCIe 2.0 [1] , and only using x1 lane.
    We also see it is in IOMMU group 33, which is useful to know when passing devices through to a VM.
    [1] en.wikipedia.org/wiki/PCI_Express#Comparison_table
    [2] www.intel.com/content/www/us/en/products/sku/135581/intel-optane-memory-m10-series-16gb-m-2-80mm-pcie-3-0-20nm-3d-xpoint/specifications.html

  • @jortmungandr1112
    @jortmungandr1112 ปีที่แล้ว +4

    was looking for some quick refresher content to have with my coffee, this was perfect. thanks for keeping the series going! :)

  • @manum8170
    @manum8170 ปีที่แล้ว +1

    This was some cool stuff. I wasn't aware of "short" addition to lshw command, thx

  • @EroFelipe
    @EroFelipe ปีที่แล้ว +5

    I really enjoy these kind of videos! keep the good work.

  • @innesleroux9439
    @innesleroux9439 ปีที่แล้ว +1

    Best tip for me today was ALT in Firefox!!! Thanks as always for great content.

  • @Myektaie
    @Myektaie ปีที่แล้ว +1

    Thanks!

    • @Myektaie
      @Myektaie ปีที่แล้ว +1

      Thanks Jay! This actually solved one of my problems: i wanted to make a script in which i call it and i want to backup my computers disks with dd command and store them in the appropriate folder for each computer. This solves the part where i wasn’t sure which folder to choose 🎉 thanks, your videos are always awesome! Great work!!!

  • @haxwithaxe
    @haxwithaxe ปีที่แล้ว +10

    Even though I have been using Linux for my daily driver and in servers since 2006 I usually learn something new from most of your intro content. Even if it's not useful to me it's better than reading every man page start to finish (like I used to) and every once in a while I get to share one of those nuggets with someone who does need it.

  • @russghound
    @russghound 9 หลายเดือนก่อน

    Very helpful info! I'm learning alot about running a Linux system through your videos.

  • @Wandering_Horse
    @Wandering_Horse ปีที่แล้ว

    I totally had forgotten about the !! shortcut. Thanks.

  • @cherrymountains72
    @cherrymountains72 ปีที่แล้ว +5

    As always, very clear and concise. This may be beginner stuff but for somebody who doesn't daily drive a Linux machine, this is very helpful!

  • @jpcoll2011
    @jpcoll2011 ปีที่แล้ว

    Many many thanks for your uploading of this video. I have just come back to Linux after a couple of years in the wilderness and have been a bit concerned about my nvme temperatures which have been a bit roasty especially under heavy work loads. I use the command
    $ sudo nvme smart-log /dev/nvme0n1 but wanted a constant and up to date check between two short periods of time. The command
    watch was just what I was looking for.

  • @theshowmanuk
    @theshowmanuk ปีที่แล้ว

    Great video. Thanks again.

  • @sussusamogus7831
    @sussusamogus7831 ปีที่แล้ว

    great video Jay

  • @noam65
    @noam65 ปีที่แล้ว

    As always, well done.

  • @kychemclass5850
    @kychemclass5850 ปีที่แล้ว

    I love your tutorials Jay. Tq.

  • @Joey_Tai
    @Joey_Tai 7 หลายเดือนก่อน

    Great video. Thank you:-)

  • @teddy741
    @teddy741 ปีที่แล้ว

    Thanks! Nice tips!

  • @jonathanchevallier7046
    @jonathanchevallier7046 ปีที่แล้ว

    Great video. Thank you Jay ;-)

  • @Linux4theMac
    @Linux4theMac ปีที่แล้ว

    Great content!

  • @MorrWorm8
    @MorrWorm8 ปีที่แล้ว

    Question, if I flash a OS on a sd card for the Pi it boots into the gui then after I update & upgrade it now boots into tty1 I can repeat this process over & over. What is happening?

  • @dhollier
    @dhollier ปีที่แล้ว +1

    @learn Linux tv. Hey Jay, do you have a recommendation for a desktop and laptop the is optimized to run Linux?

    • @dingokidneys
      @dingokidneys ปีที่แล้ว +1

      I've noticed that Jay uses some System76 devices. However, if you're in Europe, Tuxedo Computers might be the way to go; I've seen them recommended by other Linux TH-camrs. More generally, Lenovo Thinkpads seem to be well thought of for Linux support and even Dell will sell you a machine with Linux on it and provide Linux support.

  • @petevenuti7355
    @petevenuti7355 ปีที่แล้ว

    Well the flash card I had installed Debian on to follow along with you seems to have erased most of itself (no I didn't dd or del or anything, it was just a spontaneous freeze and when I reboot it was gone)
    How do I edit the card's firmware to remap a SanDisk card to have more spare memory cells and less capacity?

  • @Little-bird-told-me
    @Little-bird-told-me ปีที่แล้ว

    Can you tell me how do you get those highlights around the border of your terminal. Is that a gnome extension ?

  • @petevenuti7355
    @petevenuti7355 ปีที่แล้ว

    How do I edit a flash card's firmware to remap, say, a SanDisk card to have more spare memory cells and less capacity?

  • @heysourin
    @heysourin ปีที่แล้ว

    Thank you!

  • @GrindAlchemyTech
    @GrindAlchemyTech ปีที่แล้ว

    Great video as usual...hey maybe you can mention where these commands such as lsusb can be found tinycore & some other distro don't have a lot of the commands . I typically run into this when trying to follow instructors.....& end up in a nightmare hunting some of the commands down

    • @dingokidneys
      @dingokidneys ปีที่แล้ว +1

      Tinycore looks like it uses Busybox, as do Alpine Linux and some other tiny minimal systems. Consequently, some of these commands are considered 'bloat' by the people packaging these distros and you might have to install them yourself if you want them. Tinycore maintains its own package repository as do many other Linux systems so how you find the packages will depend on the distribution and the package manager used.

  • @petevenuti7355
    @petevenuti7355 ปีที่แล้ว

    I would like to install kerrighed since I have to start over from scratch, anybody have any ideas?, it's no longer there on the official site.

  • @DV-ml4fm
    @DV-ml4fm ปีที่แล้ว +1

    There is also dmidecode.

  • @tonypa9338
    @tonypa9338 ปีที่แล้ว +2

    Great information. I feel your videos are exceptionally good for explaining GNU/Linux for beginners. Thank you for spending the time to do so.
    May ask a question, please? After using lshw and sending the output to an html file (sudo lshw -html > hwinfo.html), I opened the html file and noticed one hardware description (parallel controller, in this case) displayed red text. Could you explain what this means?
    I apologize if this question has already been asked and I missed it.
    Thanks again

  • @ebusdk
    @ebusdk ปีที่แล้ว

    First of all; great videl - again :)
    But... I signed up for Akamai (from scandinavia) with the same name/payment/cc as my AWS and Azure business account. Got declined and no reply from their support - not really the kind of support I was looking for.

  • @jan5504
    @jan5504 ปีที่แล้ว

    hello brother, I have a serious question, how do you make this linux expertise a career besides from TH-cam content? I'm really confused right now.. I love these videos btw

  • @noelvaillant7626
    @noelvaillant7626 ปีที่แล้ว

    This is why I don't want to use snap: it messes up the output of lsblk : (

    • @dingokidneys
      @dingokidneys ปีที่แล้ว +1

      You could just set up an alias for lsblk that adds the -e|--exclude option. I think that "lsblk -e 7" would do the trick.

  • @christenorio9555
    @christenorio9555 ปีที่แล้ว

    Systemd error log will be much easier to translate in HTML

    • @jeremiahbullfrog9288
      @jeremiahbullfrog9288 ปีที่แล้ว

      can you expand on this, i have no idea how to use this information

    • @christenorio9555
      @christenorio9555 ปีที่แล้ว

      @@jeremiahbullfrog9288 for the steam Deck for identification of the crash report in incompatible in game crash report will being human readable fallout new Vegas

  • @ryanswatson
    @ryanswatson ปีที่แล้ว +1

    Hi

  • @nagag4739
    @nagag4739 ปีที่แล้ว +1

    First comment🎉

  • @brissance
    @brissance ปีที่แล้ว

    why server people in general linux people are so boring, yeah linux , freebsd are all boring people, no fun no taste.

  • @sveu3pm
    @sveu3pm ปีที่แล้ว +1

    ubuntu snap crap