How To Check System Specs Linux Terminal : Linux Terminal Hardware Specs

When you need to know your system’s hardware capabilities, the terminal provides a complete answer. Learning how to check system specs linux terminal is one of the most useful skills for any Linux user, whether you are a beginner or a seasoned administrator. The command line gives you precise, detailed information about your CPU, memory, storage, and more without needing any graphical tools.

In this guide, you will discover the most effective commands to inspect your system’s hardware and software specs. We will cover everything from basic CPU details to advanced disk information. Each command is explained with practical examples so you can start using them right away.

How To Check System Specs Linux Terminal

Before we dive into specific commands, it helps to understand what system specs actually include. System specifications typically cover your processor model and speed, amount of RAM, disk storage, graphics card, and operating system version. The terminal can show all of this and more.

You dont need to install any extra software for most of these commands. They come pre-installed on almost every Linux distribution. This makes the terminal a reliable tool for system inspection.

Checking CPU Information

The central processing unit is the brain of your computer. Knowing your CPU model, cores, and speed is essential for performance troubleshooting and software compatibility checks.

The lscpu command is the easiest way to get CPU details. Open your terminal and type:

lscpu

This command displays a clean summary including:

  • Architecture (like x86_64 or aarch64)
  • CPU op-mode(s)
  • Model name
  • CPU family
  • Threads per core
  • Core(s) per socket
  • Socket(s)
  • CPU max MHz
  • CPU min MHz

For more raw data, you can read the /proc/cpuinfo file directly. Use this command:

cat /proc/cpuinfo

This shows every processor core with its specific flags and features. It is usefull when you need to check for specific instruction sets like SSE, AVX, or virtualization support.

If you want a quick count of CPU cores, combine grep with wc:

grep -c processor /proc/cpuinfo

This returns just the number of cores, which is handy for scripting or quick checks.

Checking Memory (RAM) Information

Memory is critical for multitasking and application performance. The terminal offers several ways to view RAM details.

The free command gives a snapshot of memory usage. Run it with the -h flag for human-readable output:

free -h

This shows total, used, and available memory in gigabytes or megabytes. It also displays swap space usage.

For more detailed information about each memory module, use dmidecode. Note that this requires root privileges:

sudo dmidecode --type memory

This command reveals the number of memory slots, type of RAM (DDR3, DDR4, etc.), speed, and manufacturer. It is extremely usefull when planning upgrades.

Another option is vmstat which shows virtual memory statistics:

vmstat -s

This includes total memory, kernel memory, and active/inactive pages. It gives a deeper look into how memory is being utilized.

Checking Disk Storage Information

Storage space and disk health are vital for system stability. The terminal provides comprehensive tools for inspecting drives.

Start with df to see disk space usage for mounted filesystems:

df -h

The -h flag makes output human-readable. You will see each partition, its size, used space, available space, and mount point.

For disk partition details, use lsblk:

lsblk

This shows a tree view of all block devices including disks and their partitions. Add the -f flag to see filesystem types:

lsblk -f

To get detailed information about a specific disk, use fdisk:

sudo fdisk -l /dev/sda

Replace /dev/sda with your actual disk device. This shows partition tables, sector sizes, and partition types.

For solid-state drives (SSDs), you can check health with smartctl from the smartmontools package:

sudo smartctl -a /dev/sda

This displays SMART data including wear level, temperature, and pending sectors. It helps predict drive failures before they happen.

Checking Graphics Card Information

Graphics processing units (GPUs) are important for gaming, video editing, and machine learning. The terminal can identify your GPU without opening the case.

For NVIDIA cards, use nvidia-smi:

nvidia-smi

This shows GPU model, driver version, memory usage, and temperature. It also lists running processes using the GPU.

For AMD or Intel integrated graphics, use lspci:

lspci | grep -i vga

This filters the PCI devices list to show only VGA compatible controllers. You will see the vendor and model name.

For more detailed information, use glxinfo from the mesa-utils package:

glxinfo | grep "OpenGL renderer"

This shows the OpenGL renderer string, which includes the GPU model and driver version.

Checking Operating System Version

Knowing your OS version is essential for software compatibility and troubleshooting. Several commands provide this information.

The lsb_release command works on most distributions:

lsb_release -a

This displays distributor ID, description, release number, and codename.

For a quick check, read the /etc/os-release file:

cat /etc/os-release

This shows the same information in a key-value format, which is easier to parse in scripts.

To see the kernel version, use uname:

uname -r

This returns just the kernel release number. Add the -a flag for all system information:

uname -a

This includes kernel name, hostname, kernel release, kernel version, machine hardware, and operating system.

Checking Network Information

Network specs are part of your system configuration. The terminal can show your network interfaces, IP addresses, and hardware addresses.

Use ip command to list network interfaces:

ip addr

This shows each interface with its MAC address, IP address, and status. For a cleaner view, use:

ip -br addr

The -br flag gives brief output, showing only essential information.

To see wireless network details, use iwconfig:

iwconfig

This displays wireless interfaces, their mode, frequency, signal strength, and link quality.

For hardware information about network cards, use lspci again:

lspci | grep -i network

This shows Ethernet and wireless controllers with their model names.

Using A Single Command For Complete Specs

Sometimes you want a comprehensive overview without running multiple commands. Several tools can provide this.

The inxi command is a popular choice. Install it first:

sudo apt install inxi   # Debian/Ubuntu
sudo dnf install inxi   # Fedora

Then run:

inxi -F

This shows full system information including CPU, memory, disks, graphics, network, and more. The -F flag stands for “full”.

Another option is neofetch, which displays system info with a logo:

neofetch

This is more visually appealing and shows distribution, kernel, uptime, packages, shell, resolution, DE, WM, theme, and icons.

For a minimalist approach, use screenfetch:

screenfetch

It provides similar information but with a different layout.

Checking Hardware With Lshw

The lshw command is a comprehensive hardware lister. It provides detailed information about every hardware component.

Run it with root privileges for complete output:

sudo lshw

This generates a long list of hardware including motherboard, CPU, memory, storage, graphics, and peripherals. To shorten the output, use the -short flag:

sudo lshw -short

This shows a summary table with class, description, and device path.

You can also filter by class:

sudo lshw -class processor
sudo lshw -class memory
sudo lshw -class disk

This makes it easy to focus on specific components.

Checking USB Devices

USB devices are part of your system specs. The terminal can list all connected USB hardware.

Use lsusb:

lsusb

This shows a list of USB buses and devices attached to them. Each line includes the device ID and manufacturer.

For more detail, use lsusb -v:

lsusb -v

This verbose output shows configuration descriptors, interface descriptors, and endpoint descriptors.

Checking BIOS/UEFI Information

Firmware details are part of your system specs. The terminal can reveal BIOS or UEFI version and settings.

Use dmidecode for BIOS information:

sudo dmidecode --type bios

This shows vendor, version, release date, and ROM size. For UEFI systems, it also shows UEFI specification version.

To check if you are using UEFI or legacy BIOS, look for the EFI directory:

ls /sys/firmware/efi

If this directory exists, you are booting in UEFI mode. If not, you are using legacy BIOS.

Checking Temperature And Sensors

System temperature is an important spec for performance monitoring. The terminal can read sensor data.

Install lm-sensors first:

sudo apt install lm-sensors   # Debian/Ubuntu
sudo dnf install lm_sensors   # Fedora

Then run sensors-detect to configure:

sudo sensors-detect

After configuration, use sensors to view temperatures:

sensors

This shows CPU temperature, motherboard temperature, fan speeds, and voltage readings.

Checking System Uptime And Load

Uptime and load average are part of system health specs. The terminal provides these easily.

Use uptime:

uptime

This shows current time, how long the system has been running, number of users, and load averages for 1, 5, and 15 minutes.

For more detailed load information, use top or htop:

top

This shows real-time process information including CPU and memory usage per process.

Putting It All Together

Now you have a complete toolkit for checking system specs from the terminal. You can quickly assess your hardware, diagnose issues, and plan upgrades.

Here is a quick reference summary:

  • CPU: lscpu or cat /proc/cpuinfo
  • Memory: free -h or sudo dmidecode --type memory
  • Disk: df -h and lsblk
  • Graphics: lspci | grep -i vga or nvidia-smi
  • OS: lsb_release -a or cat /etc/os-release
  • Network: ip addr or iwconfig
  • Comprehensive: inxi -F or sudo lshw

Remember that some commands require root privileges. Always use sudo when needed to access hardware information.

Practice these commands regularly to become comfortable with them. The terminal is a powerful tool, and knowing your system specs is the first step to mastering it.

Frequently Asked Questions

What Is The Fastest Way To Check System Specs In Linux Terminal?

The fastest way is to use inxi -F if installed, or lscpu combined with free -h and df -h. These commands provide immediate results without extra packages.

Can I Check System Specs Without Root Access?

Yes, many commands like lscpu, free, df, and uname work without root. However, commands like dmidecode and lshw require root for complete information.

How Do I Check My Linux Kernel Version?

Use uname -r to see the kernel release number. For more details, use uname -a which shows all system information including kernel version.

What Command Shows All Hardware Details At Once?

The sudo lshw command provides a complete hardware listing. For a shorter summary, use sudo lshw -short. Alternatively, inxi -F gives a comprehensive overview.

How Do I Check If My System Is 32-Bit Or 64-Bit?

Use uname -m or lscpu and look for the Architecture line. If it shows x86_64 or aarch64, it is 64-bit. If it shows i686 or i386, it is 32-bit.