A2oz

How Do I Check My System Specs on Linux?

Published in System Information 2 mins read

You can check your system specifications on Linux using several command-line tools.

1. lscpu

The lscpu command provides information about your CPU, including:

  • Architecture: The CPU architecture, such as x86-64 or ARM.
  • Model: The specific model of the CPU, like Intel Core i7-8700K or AMD Ryzen 7 3700X.
  • Cores: The number of physical cores in the CPU.
  • Threads: The number of logical threads supported by the CPU.
  • Cache: The size of the CPU's cache levels.
  • Speed: The clock speed of the CPU.

Example:

lscpu

2. dmidecode

The dmidecode command provides information about your system's hardware, including:

  • Motherboard: Manufacturer, model, and serial number.
  • Memory: Total installed RAM, speed, and type.
  • BIOS: Version and date.
  • Storage: Hard drive size, model, and interface.

Example:

dmidecode | grep -E 'Manufacturer|Product Name|Serial Number|Size|Speed|Type'

3. free

The free command shows information about your system's memory usage, including:

  • Total RAM: The total amount of RAM installed.
  • Used RAM: The amount of RAM currently in use.
  • Free RAM: The amount of RAM currently available.
  • Swap: The amount of swap space available.

Example:

free -h

4. lspci

The lspci command lists all PCI devices in your system, including:

  • Graphics card: Model, manufacturer, and memory.
  • Network card: Type, speed, and MAC address.
  • Other devices: USB controllers, sound cards, and more.

Example:

lspci -vnnk

5. lsusb

The lsusb command lists all USB devices connected to your system, including:

  • Device name: The name of the USB device.
  • Vendor ID: The unique identifier for the device manufacturer.
  • Product ID: The unique identifier for the specific device model.

Example:

lsusb

These commands provide a comprehensive view of your system's specifications. You can use them to identify hardware components, troubleshoot issues, or simply learn more about your computer.

Related Articles