Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Check Your Linux Hardware Specs & Model

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To check your computer's hardware specs and model version on Linux, open a terminal and run lshw, lscpu, lsblk, and dmidecode (the last one needs sudo). These commands show your CPU, RAM, disk, motherboard, and system model. Most distributions include these tools by default; if not, install them with your package manager (e.g., sudo apt install lshw on Debian/Ubuntu).

What You'll Need

  • A Linux system with a terminal (Ctrl+Alt+T usually opens it).
  • sudo privileges (to read some hardware info like the exact model number).
  • Internet access only if you need to install missing tools.

Step-by-Step

  1. Open a terminal. Press Ctrl+Alt+T or search for “Terminal” in your app menu.
  2. Get a full hardware overview with lshw. Run sudo lshw (or sudo lshw -short for a compact list). This shows your motherboard model, CPU, RAM, and more. The -short option gives a clean table.
  3. Check CPU details with lscpu. Run lscpu to see the processor name, architecture, cores, and speed.
  4. List disks and partitions with lsblk. Run lsblk to see your storage devices (e.g., /dev/sda), their sizes, and partitions.
  5. Get the exact system model and serial number with dmidecode. Run sudo dmidecode -t system. Look for “Manufacturer”, “Product Name”, and “Serial Number”. This is the most reliable way to get the model version.
  6. Check RAM details with free and sudo dmidecode -t memory. free -h shows total RAM in human-readable form. sudo dmidecode -t memory shows each stick’s size, type, and speed.
  7. Check GPU info with lspci. Run lspci | grep -i vga to see your graphics card model.
  8. If you prefer a GUI, install hardinfo or cpu-x. For example, on Debian/Ubuntu: sudo apt install hardinfo, then run hardinfo. It shows a friendly summary.

Common Mistakes

  • Forgetting sudo. Commands like lshw and dmidecode need root privileges to read the full model info; without sudo they may show incomplete data or errors.
  • Using the wrong package manager. On Fedora, use sudo dnf install lshw; on Arch, sudo pacman -S lshw. Using apt on non-Debian systems will fail.
  • Confusing model number with kernel version. uname -a shows the kernel, not the hardware model. Use dmidecode for the actual product name.
  • Reading the wrong line in lspci. The GPU might show as “VGA compatible controller” but also as “3D controller” for some NVIDIA cards; search for both.

Tips

  • Use lshw -html > hardware.html to save a full report you can open in a browser or share.
  • For a quick summary, run lshw -short and lscpu; these give you 90% of what you need.
  • If you need to know the exact RAM type (DDR3 vs DDR4), sudo dmidecode -t memory shows it under “Type”.
  • On laptops, sudo dmidecode -t system often shows the laptop model like “Latitude 7480” or “ThinkPad T480”.
  • If you only need the model number for warranty or drivers, run sudo dmidecode -s system-product-name — it prints just that line.

Troubleshooting

If the commands aren't found, install the tools. For Debian/Ubuntu: sudo apt install lshw dmidecode. For Fedora: sudo dnf install lshw dmidecode. For Arch: sudo pacman -S lshw dmidecode.

If sudo dmidecode gives “No SMBIOS nor DMI entry found”, your system may be a virtual machine or a very old BIOS that doesn't expose DMI data. In that case, rely on lshw and lscpu for most info; the model might be listed in lshw under “product”.

If lspci shows nothing for VGA, try lspci -nn | grep -i '0300' (the PCI class code for display controllers).

If you're on a headless server (no GUI), all these commands work in the terminal. If you get “permission denied” errors, run with sudo.

Frequently Asked Questions

How do I find my exact laptop model number?

Run sudo dmidecode -t system and look for “Product Name”. That’s the model version.

What's the difference between lshw and dmidecode?

Both read hardware info, but lshw gives a general overview, while dmidecode reads the DMI/SMBIOS tables directly, often providing more precise model and serial numbers.

Can I check specs without sudo?

Yes, lscpu and lsblk work without sudo. lshw and dmidecode need sudo for full details; without it, they show partial info.

How do I see my RAM speed and type?

Run sudo dmidecode -t memory and look for “Type: DDR4” and “Speed: 2666 MT/s”.

Why does uname -a not show my computer model?

Because uname shows the kernel and OS info, not hardware. Use dmidecode or lshw for hardware model.

Is there a GUI tool that shows all specs?

Yes, install hardinfo (Debian/Ubuntu) or cpu-x (available in many repos). They provide a graphical summary.