{"id":2186,"date":"2019-06-06T13:20:08","date_gmt":"2019-06-06T11:20:08","guid":{"rendered":"http:\/\/jakisproblem.pl\/?p=2186"},"modified":"2019-06-06T13:20:08","modified_gmt":"2019-06-06T11:20:08","slug":"10-useful-commands-to-collect-system-and-hardware-information-in-linux","status":"publish","type":"post","link":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2019\/06\/06\/10-useful-commands-to-collect-system-and-hardware-information-in-linux\/","title":{"rendered":"10 Useful Commands to Collect System and Hardware Information in Linux"},"content":{"rendered":"\n<p>by\u00a0<a href=\"https:\/\/www.tecmint.com\/author\/aaronkili\/\">Aaron Kili<\/a>\u00a0| Published: September 16, 2015 | Last Updated: September 18, 2015<strong>Download Your Free eBooks NOW<\/strong>\u00a0&#8211;\u00a0<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/www.tecmint.com\/10-useful-free-linux-ebooks-for-newbies-and-administrators\/\">10 Free Linux eBooks for Administrators<\/a>\u00a0|\u00a0<a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/www.tecmint.com\/free-linux-shell-scripting-books\/\">4 Free Shell Scripting eBooks<\/a><br><br><\/p>\n\n\n\n<p>It is always a good practice to know the hardware components of your Linux system is running on, this helps you to deal with compatibility issues when it comes to installing packages, drivers on your system.<\/p>\n\n\n\n<p>10 Commands to Check Hardware and System Information in Linux<\/p>\n\n\n\n<p>Therefore in this&nbsp;<a href=\"https:\/\/www.tecmint.com\/tag\/linux-tricks\/\" target=\"_blank\" rel=\"noreferrer noopener\">tips and tricks<\/a>, we shall look at some useful commands that can help you to extract information about your Linux system and hardware components.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. How to View Linux System Information<\/h3>\n\n\n\n<p>To know only system name, you can use&nbsp;<strong>uname<\/strong>&nbsp;command without any switch will print system information or&nbsp;<strong>uname -s<\/strong>&nbsp;command will print the kernel name of your system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname<\/strong>\n\n<strong>Linux<\/strong>\n<\/pre>\n\n\n\n<p>To view your network hostname, use&nbsp;<strong>\u2018-n\u2019<\/strong>&nbsp;switch with uname command as shown.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname -n<\/strong>\n\n<strong>tecmint.com<\/strong>\n<\/pre>\n\n\n\n<p>To get information about kernel-version, use&nbsp;<strong>\u2018-v\u2019<\/strong>&nbsp;switch.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname -v<\/strong>\n\n<strong>#64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014<\/strong>\n<\/pre>\n\n\n\n<p>To get the information about your kernel release, use&nbsp;<strong>\u2018-r\u2019<\/strong>&nbsp;switch.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname -r<\/strong>\n\n<strong>3.13.0-37-generic<\/strong>\n<\/pre>\n\n\n\n<p>To print your machine hardware name, use&nbsp;<strong>\u2018-m\u2019<\/strong>&nbsp;switch:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname -m<\/strong>\n\n<strong>x86_64<\/strong>\n<\/pre>\n\n\n\n<p>All this information can be printed at once by running&nbsp;<strong>\u2018uname -a\u2019<\/strong>&nbsp;command as shown below.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>uname -a<\/strong>\n\n<strong>Linux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU\/Linux<\/strong>\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. How to View Linux System Hardware Information<\/h3>\n\n\n\n<p>Here you can use the&nbsp;<strong>lshw tool<\/strong>&nbsp;to gather vast information about your hardware components such as&nbsp;<strong>cpu<\/strong>,&nbsp;<strong>disks<\/strong>,&nbsp;<strong>memory<\/strong>,&nbsp;<strong>usb controllers<\/strong>&nbsp;etc.<\/p>\n\n\n\n<p><strong>lshw<\/strong>&nbsp;is a relatively small tool and there are few options that you can use with it while extracting information. The information provided by&nbsp;<strong>lshw<\/strong>&nbsp;gathered form different&nbsp;<strong>\/proc<\/strong>&nbsp;files.<\/p>\n\n\n\n<p><strong>Note<\/strong>: Do remember that the&nbsp;<strong>lshw<\/strong>&nbsp;command executed by superuser (<strong>root<\/strong>) or&nbsp;<strong>sudo<\/strong>&nbsp;user.<\/p>\n\n\n\n<p><strong>Read Also<\/strong>:&nbsp;<a href=\"https:\/\/www.tecmint.com\/su-vs-sudo-and-how-to-configure-sudo-in-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Difference Between su and sudo User in Linux<\/a><\/p>\n\n\n\n<p>To print information about your Linux system hardware, run this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo lshw<\/strong>\n\ntecmint.com               \n    description: Notebook\n    product: 20354 (LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70)\n    vendor: LENOVO\n    version: Lenovo Z50-70\n    serial: 1037407803441\n    width: 64 bits\n    capabilities: smbios-2.7 dmi-2.7 vsyscall32\n    configuration: administrator_password=disabled boot=normal chassis=notebook family=IDEAPAD frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70 uuid=E4B1D229-D237-E411-9F6E-28D244EBBD98\n  *-core\n       description: Motherboard\n       product: Lancer 5A5\n       vendor: LENOVO\n       physical id: 0\n       version: 31900059WIN\n       serial: YB06377069\n       slot: Type2 - Board Chassis Location\n     *-firmware\n          description: BIOS\n          vendor: LENOVO\n          physical id: 0\n          version: 9BCN26WW\n          date: 07\/31\/2014\n          size: 128KiB\n          capacity: 4032KiB\n          capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification uefi\n......\n<\/pre>\n\n\n\n<p>You can print a summary of your hardware information by using the&nbsp;<strong>-short<\/strong>&nbsp;option.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo lshw -short<\/strong>\n\nH\/W path       Device      Class          Description\n=====================================================\n                           system         20354 (LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70)\n\/0                         bus            Lancer 5A5\n\/0\/0                       memory         128KiB BIOS\n\/0\/4                       processor      Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz\n\/0\/4\/b                     memory         32KiB L1 cache\n\/0\/4\/c                     memory         256KiB L2 cache\n\/0\/4\/d                     memory         3MiB L3 cache\n\/0\/a                       memory         32KiB L1 cache\n\/0\/12                      memory         8GiB System Memory\n\/0\/12\/0                    memory         DIMM [empty]\n\/0\/12\/1                    memory         DIMM [empty]\n\/0\/12\/2                    memory         8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)\n\/0\/12\/3                    memory         DIMM [empty]\n\/0\/100                     bridge         Haswell-ULT DRAM Controller\n\/0\/100\/2                   display        Haswell-ULT Integrated Graphics Controller\n\/0\/100\/3                   multimedia     Haswell-ULT HD Audio Controller\n...\n<\/pre>\n\n\n\n<p>If you wish to generate output as a html file, you can use the option&nbsp;<strong>-html<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo lshw -html &gt; lshw.html<\/strong>\n<\/pre>\n\n\n\n<p>Generate Linux Hardware Information in HTML<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. How to View Linux CPU Information<\/h3>\n\n\n\n<p>To view information about your CPU, use the lscpu command as it shows information about your CPU architecture such as number of CPU\u2019s, cores, CPU family model, CPU caches, threads, etc from&nbsp;<strong>sysfs<\/strong>&nbsp;and&nbsp;<strong>\/proc\/cpuinfo<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lscpu<\/strong>\n\nArchitecture:          x86_64\nCPU op-mode(s):        32-bit, 64-bit\nByte Order:            Little Endian\nCPU(s):                4\nOn-line CPU(s) list:   0-3\nThread(s) per core:    2\nCore(s) per socket:    2\nSocket(s):             1\nNUMA node(s):          1\nVendor ID:             GenuineIntel\nCPU family:            6\nModel:                 69\nStepping:              1\nCPU MHz:               768.000\nBogoMIPS:              4788.72\nVirtualization:        VT-x\nL1d cache:             32K\nL1i cache:             32K\nL2 cache:              256K\nL3 cache:              3072K\nNUMA node0 CPU(s):     0-3\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. How to Collect Linux Block Device Information<\/h3>\n\n\n\n<p>Block devices are storage devices such as hard disks, flash drives etc.&nbsp;<strong>lsblk<\/strong>&nbsp;command is used to report information about block devices as follows.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsblk<\/strong>\n\nNAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\nsda       8:0    0 931.5G  0 disk \n\u251c\u2500sda1    8:1    0  1000M  0 part \n\u251c\u2500sda2    8:2    0   260M  0 part \/boot\/efi\n\u251c\u2500sda3    8:3    0  1000M  0 part \n\u251c\u2500sda4    8:4    0   128M  0 part \n\u251c\u2500sda5    8:5    0 557.1G  0 part \n\u251c\u2500sda6    8:6    0    25G  0 part \n\u251c\u2500sda7    8:7    0  14.7G  0 part \n\u251c\u2500sda8    8:8    0     1M  0 part \n\u251c\u2500sda9    8:9    0 324.5G  0 part \/\n\u2514\u2500sda10   8:10   0   7.9G  0 part [SWAP]\nsr0      11:0    1  1024M  0 rom  \n<\/pre>\n\n\n\n<p>If you want to view all block devices on your system then include the&nbsp;<strong>-a<\/strong>&nbsp;option.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsblk -a<\/strong>\n\nNAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\nsda       8:0    0 931.5G  0 disk \n\u251c\u2500sda1    8:1    0  1000M  0 part \n\u251c\u2500sda2    8:2    0   260M  0 part \/boot\/efi\n\u251c\u2500sda3    8:3    0  1000M  0 part \n\u251c\u2500sda4    8:4    0   128M  0 part \n\u251c\u2500sda5    8:5    0 557.1G  0 part \n\u251c\u2500sda6    8:6    0    25G  0 part \n\u251c\u2500sda7    8:7    0  14.7G  0 part \n\u251c\u2500sda8    8:8    0     1M  0 part \n\u251c\u2500sda9    8:9    0 324.5G  0 part \/\n\u2514\u2500sda10   8:10   0   7.9G  0 part [SWAP]\nsdb       8:16   1         0 disk \nsr0      11:0    1  1024M  0 rom  \nram0      1:0    0    64M  0 disk \nram1      1:1    0    64M  0 disk \nram2      1:2    0    64M  0 disk \nram3      1:3    0    64M  0 disk \nram4      1:4    0    64M  0 disk \nram5      1:5    0    64M  0 disk \nram6      1:6    0    64M  0 disk \nram7      1:7    0    64M  0 disk \nram8      1:8    0    64M  0 disk \nram9      1:9    0    64M  0 disk \nloop0     7:0    0         0 loop \nloop1     7:1    0         0 loop \nloop2     7:2    0         0 loop \nloop3     7:3    0         0 loop \nloop4     7:4    0         0 loop \nloop5     7:5    0         0 loop \nloop6     7:6    0         0 loop \nloop7     7:7    0         0 loop \nram10     1:10   0    64M  0 disk \nram11     1:11   0    64M  0 disk \nram12     1:12   0    64M  0 disk \nram13     1:13   0    64M  0 disk \nram14     1:14   0    64M  0 disk \nram15     1:15   0    64M  0 disk \n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. How to Print USB Controllers Information<\/h3>\n\n\n\n<p>The&nbsp;<strong>lsusb<\/strong>&nbsp;command is used to report information about USB controllers and all the devices that are connected to them.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsusb<\/strong>\n\nBus 001 Device 002: ID 8087:8000 Intel Corp. \nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\nBus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\nBus 002 Device 005: ID 0bda:b728 Realtek Semiconductor Corp. \nBus 002 Device 004: ID 5986:0249 Acer, Inc \nBus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller\nBus 002 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0\nBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\n<\/pre>\n\n\n\n<p>You can use the&nbsp;<strong>-v<\/strong>&nbsp;option to generate a detailed information about each USB device.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsusb -v<\/strong>\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. How to Print PCI Devices Information<\/h3>\n\n\n\n<p>PCI devices may included usb ports, graphics cards, network adapters etc. The&nbsp;<strong>lspci tool<\/strong>&nbsp;is used to generate information concerning all PCI controllers on your system plus the devices that are connected to them.<\/p>\n\n\n\n<p>To print information about PCI devices run the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lspci<\/strong>\n\n00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)\n00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)\n00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)\n00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)\n00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)\n00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)\n00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)\n00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)\n00:1c.4 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 5 (rev e4)\n00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)\n00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)\n00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)\n00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)\n01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111\/8168\/8411 PCI Express Gigabit Ethernet Controller (rev 10)\n02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter\n03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev a2)\n<\/pre>\n\n\n\n<p>Use the&nbsp;<strong>-t<\/strong>&nbsp;option to produce output in a tree format.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lspci -t<\/strong>\n\n-[0000:00]-+-00.0\n           +-02.0\n           +-03.0\n           +-14.0\n           +-16.0\n           +-1b.0\n           +-1c.0-[01]----00.0\n           +-1c.3-[02]----00.0\n           +-1c.4-[03]----00.0\n           +-1d.0\n           +-1f.0\n           +-1f.2\n           \\-1f.3\n<\/pre>\n\n\n\n<p>Use the&nbsp;<strong>-v<\/strong>&nbsp;option to produce detailed information about each connected device.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lspci -v<\/strong>\n\n00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)\n\tSubsystem: Lenovo Device 3978\n\tFlags: bus master, fast devsel, latency 0\n\tCapabilities: \n\n00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) (prog-if 00 [VGA controller])\n\tSubsystem: Lenovo Device 380d\n\tFlags: bus master, fast devsel, latency 0, IRQ 62\n\tMemory at c3000000 (64-bit, non-prefetchable) [size=4M]\n\tMemory at d0000000 (64-bit, prefetchable) [size=256M]\n\tI\/O ports at 6000 [size=64]\n\tExpansion ROM at  [disabled]\n\tCapabilities: \n\tKernel driver in use: i915\n.....\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7. How to Print SCSI Devices Information<\/h3>\n\n\n\n<p>To view all your scsi\/sata devices, use the&nbsp;<strong>lsscsi<\/strong>&nbsp;command as follows. If you do not have&nbsp;<strong>lsscsi<\/strong>&nbsp;tool installed, run the following command to install it.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install lsscsi        [on <strong>Debian<\/strong> derivatives]\n# yum install lsscsi                 [On RedHat based systems]\n# dnf install lsscsi                 [On Fedora 21+ Onwards]\n<\/pre>\n\n\n\n<p>After install, run the&nbsp;<strong>lsscsi<\/strong>&nbsp;command as shown:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsscsi<\/strong>\n\n[0:0:0:0]    disk    ATA      ST1000LM024 HN-M 2BA3  \/dev\/sda \n[1:0:0:0]    cd\/dvd  PLDS     DVD-RW DA8A5SH   RL61  \/dev\/sr0 \n[4:0:0:0]    disk    Generic- xD\/SD\/M.S.       1.00  \/dev\/sdb \n<\/pre>\n\n\n\n<p>Use the&nbsp;<strong>-s<\/strong>&nbsp;option to show device sizes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>lsscsi -s<\/strong>\n\n[0:0:0:0]    disk    ATA      ST1000LM024 HN-M 2BA3  \/dev\/sda   1.00TB\n[1:0:0:0]    cd\/dvd  PLDS     DVD-RW DA8A5SH   RL61  \/dev\/sr0        -\n[4:0:0:0]    disk    Generic- xD\/SD\/M.S.       1.00  \/dev\/sdb        -\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">8. How to Print Information about SATA Devices<\/h3>\n\n\n\n<p>You can find some information about sata devices on your system as follows using the&nbsp;<strong>hdparm<\/strong>&nbsp;utility. In the example below, I used the block device&nbsp;<strong>\/dev\/sda1<\/strong>&nbsp;which the harddisk on my system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo hdparm \/dev\/sda1<\/strong>\n\n\/dev\/sda1:\n multcount     =  0 (off)\n IO_support    =  1 (32-bit)\n readonly      =  0 (off)\n readahead     = 256 (on)\n geometry      = 56065\/255\/63, sectors = 2048000, start = 2048\n<\/pre>\n\n\n\n<p>To print information about device geometry interms of cylinders, heads, sectors, size and the starting offset of the device, use the&nbsp;<strong>-g<\/strong>&nbsp;option.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo hdparm -g \/dev\/sda1<\/strong>\n\n\/dev\/sda1:\n geometry      = 56065\/255\/63, sectors = 2048000, start = 2048\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">9. How to Print Linux File System Information<\/h3>\n\n\n\n<p>To gather information about file system partitions, you can use&nbsp;<strong>fdisk<\/strong>&nbsp;command. Although the main functionality of&nbsp;<strong>fdisk<\/strong>&nbsp;command is to modify file system partitions, it can also be used to view information about the different partitions on your file system.<\/p>\n\n\n\n<p>You can print partition information as follows. Remember to run the command as a superuser or else you may not see any output.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo fdisk -l<\/strong>\n\nWARNING: GPT (GUID Partition Table) detected on '\/dev\/sda'! The util fdisk doesn't support GPT. Use GNU Parted.\n\n\nDisk \/dev\/sda: 1000.2 GB, 1000204886016 bytes\n255 heads, 63 sectors\/track, 121601 cylinders, total 1953525168 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\nDisk identifier: 0xcee8ad92\n\n   Device Boot      Start         End      Blocks   Id  System\n\/dev\/sda1               1  1953525167   976762583+  ee  GPT\nPartition 1 does not start on physical sector boundary.\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">10. How to Extract Information about Hardware Components<\/h3>\n\n\n\n<p>You can also use the&nbsp;<a href=\"https:\/\/www.tecmint.com\/how-to-get-hardware-information-with-dmidecode-command-on-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">dmidecode utility<\/a>&nbsp;to extract hardware information by reading data from the DMI tables.<\/p>\n\n\n\n<p>To print information about memory, run this command as a superuser.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo dmidecode -t memory<\/strong>\n\n# dmidecode 2.12\n# SMBIOS entry point at 0xaaebef98\nSMBIOS 2.7 present.\n\nHandle 0x0005, DMI type 5, 24 bytes\nMemory Controller Information\n\tError Detecting Method: None\n\tError Correcting Capabilities:\n\t\tNone\n\tSupported Interleave: One-way Interleave\n\tCurrent Interleave: One-way Interleave\n\tMaximum Memory Module Size: 8192 MB\n\tMaximum Total Memory Size: 32768 MB\n\tSupported Speeds:\n\t\tOther\n\tSupported Memory Types:\n\t\tOther\n\tMemory Module Voltage: Unknown\n\tAssociated Memory Slots: 4\n\t\t0x0006\n\t\t0x0007\n\t\t0x0008\n\t\t0x0009\n\tEnabled Error Correcting Capabilities:\n\t\tNone\n...\n<\/pre>\n\n\n\n<p>To print information about system, run this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo dmidecode -t system<\/strong>\n\n# dmidecode 2.12\n# SMBIOS entry point at 0xaaebef98\nSMBIOS 2.7 present.\n\nHandle 0x0001, DMI type 1, 27 bytes\nSystem Information\n\tManufacturer: LENOVO\n\tProduct Name: 20354\n\tVersion: Lenovo Z50-70\n\tSerial Number: 1037407803441\n\tUUID: 29D2B1E4-37D2-11E4-9F6E-28D244EBBD98\n\tWake-up Type: Power Switch\n\tSKU Number: LENOVO_MT_20354_BU_idea_FM_Lenovo Z50-70\n\tFamily: IDEAPAD\n...\n<\/pre>\n\n\n\n<p>To print information about BIOS, run this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo dmidecode -t bios<\/strong>\n\n# dmidecode 2.12\n# SMBIOS entry point at 0xaaebef98\nSMBIOS 2.7 present.\n\nHandle 0x0000, DMI type 0, 24 bytes\nBIOS Information\n\tVendor: LENOVO\n\tVersion: 9BCN26WW\n\tRelease Date: 07\/31\/2014\n\tAddress: 0xE0000\n\tRuntime Size: 128 kB\n\tROM Size: 4096 kB\n\tCharacteristics:\n\t\tPCI is supported\n\t\tBIOS is upgradeable\n\t\tBIOS shadowing is allowed\n\t\tBoot from CD is supported\n\t\tSelectable boot is supported\n\t\tEDD is supported\n\t\tJapanese floppy for NEC 9800 1.2 MB is supported (int 13h)\n\t\tJapanese floppy for Toshiba 1.2 MB is supported (int 13h)\n\t\t5.25\"\/360 kB floppy services are supported (int 13h)\n\t\t5.25\"\/1.2 MB floppy services are supported (int 13h)\n\t\t3.5\"\/720 kB floppy services are supported (int 13h)\n\t\t3.5\"\/2.88 MB floppy services are supported (int 13h)\n\t\t8042 keyboard services are supported (int 9h)\n\t\tCGA\/mono video services are supported (int 10h)\n\t\tACPI is supported\n\t\tUSB legacy is supported\n\t\tBIOS boot specification is supported\n\t\tTargeted content distribution is supported\n\t\tUEFI is supported\n\tBIOS Revision: 0.26\n\tFirmware Revision: 0.26\n...\n<\/pre>\n\n\n\n<p>To print information about processor, run this command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>tecmint@tecmint ~ $<\/strong> <strong>sudo dmidecode -t processor<\/strong>\n\n# dmidecode 2.12\n# SMBIOS entry point at 0xaaebef98\nSMBIOS 2.7 present.\n\nHandle 0x0004, DMI type 4, 42 bytes\nProcessor Information\n\tSocket Designation: U3E1\n\tType: Central Processor\n\tFamily: Core i5\n\tManufacturer: Intel(R) Corporation\n\tID: 51 06 04 00 FF FB EB BF\n\tSignature: Type 0, Family 6, Model 69, Stepping 1\n\tFlags:\n...\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Summary<\/h3>\n\n\n\n<p>There are many other ways you can use to obtain information about your system hardware components. Most of these commands use files in the&nbsp;<strong>\/proc<\/strong>&nbsp;directory to extract system information.<\/p>\n\n\n\n<p>Hope you find this tips and tricks useful and remember to post a comment in case you want to add more information to this or if you face any difficulties in using any of the commands. Remember to always stay connected to\u00a0<strong>Tecmint<\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-tecmint-linux-howtos-tutorials-amp-guides\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Ai9KaPMOZ3\"><a href=\"https:\/\/www.tecmint.com\/commands-to-collect-system-and-hardware-information-in-linux\/\">10 Useful Commands to Collect System and Hardware Information in Linux<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.tecmint.com\/commands-to-collect-system-and-hardware-information-in-linux\/embed\/#?secret=Ai9KaPMOZ3\" data-secret=\"Ai9KaPMOZ3\" width=\"600\" height=\"338\" title=\"&#8220;10 Useful Commands to Collect System and Hardware Information in Linux&#8221; &#8212; Tecmint: Linux Howtos, Tutorials &amp; Guides\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">by\u00a0Aaron Kili\u00a0| Published: September 16, 2015 | Last Updated: September 18, 2015Download Your Free eBooks NOW\u00a0&#8211;\u00a010 Free Linux eBooks for Administrators\u00a0|\u00a04 Free Shell Scripting eBooks It is always a good practice to know the hardware components of your Linux system is running on, this helps you to deal with compatibility issues when it comes to&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/2019\/06\/06\/10-useful-commands-to-collect-system-and-hardware-information-in-linux\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[98,99],"class_list":["post-2186","post","type-post","status-publish","format-standard","hentry","category-bez-kategorii","tag-linux","tag-unix"],"_links":{"self":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/comments?post=2186"}],"version-history":[{"count":3,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions"}],"predecessor-version":[{"id":2189,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/posts\/2186\/revisions\/2189"}],"wp:attachment":[{"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/media?parent=2186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/categories?post=2186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/u239160.webh.me\/jakisproblem.pl\/index.php\/wp-json\/wp\/v2\/tags?post=2186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}