CPUz alternative for Linux

When you are completely switched to Linux like me, there are many great free programs in Windows environment like Cpuz, CCleaner, …etc. There are many ways to view your desktop/laptop’s hardware in Linux. Most of the hardware information are in /proc, for example

To view CPU information

$ cat /proc/cpuinfo

To view ram/memory information

$ cat /proc/meminfo

To view storage information

$ sudo smartctl -a /dev/sda

or

$ sudo smartctl -a /dev/nvme0

As you can see each cpuinfo, meminfo, smartctl show everything in detail about your system’s cpu, memory, storage but you have to look for each one seperately. Luckily I found out about lshw, which is a great tool to view all of the hardware’s details of your system. lshw can show cpu, ram, motherboard, network….etc (pretty much everything). Very similar to CPUz.

To run lshw, simply run lshw command in the terminal with super-user (root) root privileges.

$ sudo lshw

This is the full output for my Dell Latitude E7470

x
    description: Laptop
    product: Latitude E7470 (06DC)
    vendor: Dell Inc.
    serial: 1BTDGC2
    width: 64 bits
    capabilities: smbios-3.0 dmi-3.0 smp vsyscall32
    configuration: boot=normal chassis=docking family=Latitude sku=06DC uuid=44454C4C-4200-1054-8044-B1C04F474332
  *-core
       description: Motherboard
       product: 0T6HHJ
       vendor: Dell Inc.
       physical id: 0
       version: A00
       serial: /1BTDGC2/CN1296366B00F8/
     *-firmware
          description: BIOS
          vendor: Dell Inc.
          physical id: 0
          version: 1.20.3
          date: 08/20/2018
          size: 64KiB
          capacity: 15MiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
     *-cache:0
          description: L1 cache
          physical id: 41
          slot: L1 Cache
          size: 64KiB
          capacity: 64KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-cache:1
          description: L1 cache
          physical id: 42
          slot: L1 Cache
          size: 64KiB
          capacity: 64KiB
          capabilities: synchronous internal write-back instruction
          configuration: level=1
     *-cache:2
          description: L2 cache
          physical id: 43
          slot: L2 Cache
          size: 512KiB
          capacity: 512KiB
          capabilities: synchronous internal write-back unified
          configuration: level=2
     *-cache:3
          description: L3 cache
          physical id: 44
          slot: L3 Cache
          size: 4MiB
          capacity: 4MiB
          capabilities: synchronous internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
          vendor: Intel Corp.
          physical id: 45
          bus info: [email protected]
          version: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 3292MHz
          capacity: 3400MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp flush_l1d cpufreq
          configuration: cores=2 enabledcores=2 threads=4
     *-memory
          description: System Memory
          physical id: 46
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM DDR4 Synchronous 2133 MHz (0.5 ns)
             product: HMA41GS6AFR8N-TF
             vendor: SK Hynix
             physical id: 0
             serial: 12161215
             slot: DIMM A
             size: 8GiB
             width: 64 bits
             clock: 2133MHz (0.5ns)
        *-bank:1
             description: DIMM [empty]
             physical id: 1
             slot: DIMM B
     *-pci
          description: Host bridge
          product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
          vendor: Intel Corporation
          physical id: 100
          bus info: [email protected]:00:00.0
          version: 09
          width: 32 bits
          clock: 33MHz
          configuration: driver=skl_uncore
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: Iris Graphics 540
             vendor: Intel Corporation
             physical id: 2
             bus info: [email protected]:00:02.0
             version: 0a
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:132 memory:e0000000-e0ffffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff
        *-generic:0
             description: Signal processing controller
             product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
             vendor: Intel Corporation
             physical id: 4
             bus info: [email protected]:00:04.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: driver=proc_thermal latency=0
             resources: irq:16 memory:e1340000-e1347fff
        *-usb
             description: USB controller
             product: Sunrise Point-LP USB 3.0 xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: [email protected]:00:14.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:125 memory:e1330000-e133ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 4.15.0-45-generic xhci-hcd
                physical id: 0
                bus info: [email protected]
                logical name: usb1
                version: 4.15
                capabilities: usb-2.00
                configuration: driver=hub slots=12 speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 4.15.0-45-generic xhci-hcd
                physical id: 1
                bus info: [email protected]
                logical name: usb2
                version: 4.15
                capabilities: usb-3.00
                configuration: driver=hub slots=6 speed=5000Mbit/s
        *-generic:1
             description: Signal processing controller
             product: Sunrise Point-LP Thermal subsystem
             vendor: Intel Corporation
             physical id: 14.2
             bus info: [email protected]:00:14.2
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi cap_list
             configuration: driver=intel_pch_thermal latency=0
             resources: irq:18 memory:e1352000-e1352fff
        *-communication
             description: Communication controller
             product: Sunrise Point-LP CSME HECI #1
             vendor: Intel Corporation
             physical id: 16
             bus info: [email protected]:00:16.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:133 memory:e1351000-e1351fff
        *-pci:0
             description: PCI bridge
             product: Sunrise Point-LP PCI Express Root Port #5
             vendor: Intel Corporation
             physical id: 1c
             bus info: [email protected]:00:1c.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:122 memory:e1200000-e12fffff
           *-network
                description: Wireless interface
                product: Wireless 8260
                vendor: Intel Corporation
                physical id: 0
                bus info: [email protected]:01:00.0
                logical name: wlp1s0
                version: 3a
                serial: e4:b3:18:66:7d:58
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-45-generic firmware=34.0.1 ip=10.10.10.126 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:134 memory:e1200000-e1201fff
        *-pci:1
             description: PCI bridge
             product: Sunrise Point-LP PCI Express Root Port #9
             vendor: Intel Corporation
             physical id: 1d
             bus info: [email protected]:00:1d.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:123 memory:e1100000-e11fffff
           *-storage
                description: Non-Volatile memory controller
                product: NVMe SSD Controller SM981/PM981
                vendor: Samsung Electronics Co Ltd
                physical id: 0
                bus info: [email protected]:02:00.0
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
                configuration: driver=nvme latency=0
                resources: irq:16 memory:e1100000-e1103fff
        *-pci:2
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: [email protected]:00:1d.2
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:124 memory:e1000000-e10fffff
           *-generic
                description: Unassigned class
                product: RTS525A PCI Express Card Reader
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: [email protected]:03:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: driver=rtsx_pci latency=0
                resources: irq:126 memory:e1000000-e1000fff
        *-isa
             description: ISA bridge
             product: Sunrise Point-LP LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: [email protected]:00:1f.0
             version: 21
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-memory UNCLAIMED
             description: Memory controller
             product: Sunrise Point-LP PMC
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: [email protected]:00:1f.2
             version: 21
             width: 32 bits
             clock: 33MHz (30.3ns)
             capabilities: bus_master
             configuration: latency=0
             resources: memory:e134c000-e134ffff
        *-multimedia
             description: Audio device
             product: Sunrise Point-LP HD Audio
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: [email protected]:00:1f.3
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:135 memory:e1348000-e134bfff memory:e1320000-e132ffff
        *-serial UNCLAIMED
             description: SMBus
             product: Sunrise Point-LP SMBus
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: [email protected]:00:1f.4
             version: 21
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:e1350000-e13500ff ioport:f040(size=32)
        *-network
             description: Ethernet interface
             product: Ethernet Connection I219-LM
             vendor: Intel Corporation
             physical id: 1f.6
             bus info: [email protected]:00:1f.6
             logical name: enp0s31f6
             version: 21
             serial: 84:7b:eb:4b:df:c3
             capacity: 1Gbit/s
             width: 32 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.13-3 latency=0 link=no multicast=yes port=twisted pair
             resources: irq:128 memory:e1300000-e131ffff
  *-battery
       product: DELL 1W2Y265
       vendor: Samsung SDI
       physical id: 1
       version: 05/24/2016
       serial: 884A
       slot: Sys. Battery Bay
       capacity: 54990mWh
       configuration: voltage=7.6V

If lshw give you too much information, you can make lshw give shorter output and easier to read format by adding -short option after lshe command.

$ sudo lshw -short

and the output comes with bunchs of random H/W path with no device name nor description. Scroll down to the end, lshw -short gives you kind of summary what hardware you have in your system.

H/W path       Device     Class          Description                                                                                                                                                                                                                           
====================================================                                                                                                                                                                                                                           
                          system         Computer                                                                                                                                                                                                                              
/0                        bus            Motherboard                                                                                                                                                                                                                           
/0/6630                   memory         1MiB BIOS                                                                                                                                                                                                                             
/0/1                      generic                                                                                                                                                                                                                                              
/0/10                     generic                                                                                                                                                                                                                                              
/0/1029                   generic                                                                                                                                                                                                                                              
/0/106                    generic                                                                                                                                                                                                                                              
/0/1063                   generic                                                                                                                                                                                                                                              
/0/1064                   generic                                                                                                                                                                                                                                              
/0/1065                   generic                                                                                                                                                                                                                                              
/0/1068                   generic                                                                                                                                                                                                                                              
/0/107                    generic                                                                                                                                                                                                                                              
/0/1085                   generic                                                                                                                                                                                                                                              
/0/1086                   generic                                                                                                                                                                                                                                              
/0/1089                   generic                                                                                                                                                                                                                                              
/0/1090                   generic                                                                                                                                                                                                                                              
/0/11                     generic                                                                                                                                                                                                                                              
/0/1104                   generic                                                                                                                                                                                                                                              
/0/1110                   generic                                                                                                                                                                                                                                              
/0/1116                   generic                                                                                                                                                                                                                                              
/0/112                    generic                                                                                                                                                                                                                                              
/0/1123                   generic                                                                                                                                                                                                                                              
/0/1130                   generic                                                                                                                                                                                                                                              
/0/1133                   generic                                                                                                                                                                                                                                              
/0/1135                   generic                                                                                                                                                                                                                                              
/0/1141                   generic                                                                                                                                                                                                                                              
/0/1143                   generic                                                                                                                                                                                                                                              
/0/1149                   generic                                                                                                                                                                                                                                              
/0/1156                   generic                                                                                                                                                                                                                                              
/0/1171                   generic                                                                                                                                                                                                                                              
/0/1174                   generic        
/0/1179                   generic        
/0/1189                   generic        
/0/1198                   generic        
/0/12                     generic        
/0/121                    generic        
/0/1227                   generic        
/0/1229                   generic        
/0/1238                   generic        
/0/1250                   generic        
/0/1260                   generic        
/0/1264                   generic        
/0/13                     generic        
/0/13501                  generic        
/0/13702                  generic        
/0/13763                  generic        
/0/13766                  generic        
/0/138                    generic        
/0/1396                   generic        
/0/1399                   generic        
/0/14                     generic        
/0/1418                   generic        
/0/14303                  generic        
/0/1433                   generic        
/0/1463                   generic        
/0/15                     generic        
/0/1524                   generic        
/0/1553                   generic        
/0/1563                   generic        
/0/1571                   generic        
/0/1574                   generic        
/0/1576                   generic        
/0/1584                   generic        
/0/16                     generic        
/0/1600                   generic        
/0/1654                   generic        
/0/17                     generic        
/0/18                     generic        
/0/182                    generic        
/0/183                    generic        
/0/184                    generic        
/0/185                    generic        
/0/186                    generic        
/0/187                    generic        
/0/188                    generic        
/0/189                    generic        
/0/1934                   generic        
/0/2                      generic        
/0/20                     generic        
/0/21                     generic        
/0/21220                  generic        
/0/21284                  generic        
/0/21327                  generic        
/0/21403                  generic        
/0/21460                  generic        
/0/21504                  generic        
/0/21586                  generic        
/0/21589                  generic        
/0/21619                  generic        
/0/21629                  generic        
/0/21840                  generic        
/0/22                     generic        
/0/23                     generic        
/0/23473                  generic        
/0/23598                  generic        
/0/23769                  generic        
/0/23771                  generic        
/0/24                     generic        
/0/25138                  generic        
/0/25143                  generic        
/0/25391                  generic        
/0/25404                  generic        
/0/25456                  generic        
/0/25481                  generic        
/0/25519                  generic        
/0/25531                  generic        
/0/25539                  generic        
/0/25540                  generic        
/0/25549                  generic        
/0/25571                  generic        
/0/25634                  generic        
/0/25635                  generic        
/0/26                     generic        
/0/267                    generic        
/0/2685                   generic        
/0/269                    generic        
/0/27                     generic        
/0/270                    generic        
/0/2758                   generic        
/0/28                     generic        
/0/29                     generic        
/0/3                      generic        
/0/30                     generic        
/0/319                    generic        
/0/32                     generic        
/0/3219                   generic        
/0/33                     generic        
/0/330                    generic        
/0/331                    generic        
/0/337                    generic        
/0/34                     generic        
/0/35                     generic        
/0/358                    generic        
/0/36                     generic        
/0/3605                   generic        
/0/382                    generic        
/0/3844                   generic        
/0/3845                   generic        
/0/387                    generic        
/0/395                    generic        
/0/4                      generic        
/0/40                     generic        
/0/41                     generic        
/0/42                     generic        
/0/43                     generic        
/0/44                     generic        
/0/447                    generic        
/0/45                     generic        
/0/46                     generic        
/0/47                     generic        
/0/48                     generic        
/0/51                     generic        
/0/52                     generic        
/0/53                     generic        
/0/55                     generic        
/0/56                     generic        
/0/561                    generic        
/0/563                    generic        
/0/59                     generic        
/0/6                      generic        
/0/61                     generic        
/0/630                    generic        
/0/632                    generic        
/0/634                    generic        
/0/639                    generic        
/0/643                    generic        
/0/645                    generic        
/0/659                    generic        
/0/661                    generic        
/0/662                    generic        
/0/664                    generic        
/0/666                    generic        
/0/670                    generic        
/0/683                    generic        
/0/687                    generic        
/0/688                    generic        
/0/693                    generic        
/0/718                    generic        
/0/760                    generic        
/0/763                    generic        
/0/7825                   generic        
/0/7836                   generic        
/0/793                    generic        
/0/795                    generic        
/0/8                      generic        
/0/845                    generic        
/0/864                    generic        
/0/8857                   generic        
/0/9                      generic        
/0/9316                   generic        
/0/939                    generic        
/0/942                    generic        
/0/944                    generic        
/0/957                    generic        
/0/995                    generic        
/0/0                      memory         15GiB System memory
/0/5                      processor      Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
/0/100                    bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
/0/100/2                  display        Iris Graphics 540
/0/100/4                  generic        Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
/0/100/14                 bus            Sunrise Point-LP USB 3.0 xHCI Controller
/0/100/14/0    usb1       bus            xHCI Host Controller
/0/100/14/0/8             communication  Bluetooth wireless interface
/0/100/14/1    usb2       bus            xHCI Host Controller
/0/100/14.2               generic        Sunrise Point-LP Thermal subsystem
/0/100/16                 communication  Sunrise Point-LP CSME HECI #1
/0/100/1c                 bridge         Sunrise Point-LP PCI Express Root Port #5
/0/100/1c/0    wlp1s0     network        Wireless 8260
/0/100/1d                 bridge         Sunrise Point-LP PCI Express Root Port #9
/0/100/1d/0               storage        NVMe SSD Controller SM981/PM981
/0/100/1d.2               bridge         Intel Corporation
/0/100/1d.2/0             generic        RTS525A PCI Express Card Reader
/0/100/1f                 bridge         Sunrise Point-LP LPC Controller
/0/100/1f.2               memory         Memory controller
/0/100/1f.3               multimedia     Sunrise Point-LP HD Audio
/0/100/1f.4               bus            Sunrise Point-LP SMBus
/0/100/1f.6    enp0s31f6  network        Ethernet Connection I219-LM

 

Leave a Reply

%d bloggers like this: