Categories: DebianLinuxShell

Get System and Hardware Details with uname and lscpu on Debian

This guide shows you how to retrieve system details of your Debian 11 or Debian 10 system, e.g. kernel name, kernel release, kernel version, hostname, hardware architecture, processor type, hardware platform and operating system information.

This guide was tested with Debian 10, but the commands shown here also work with other Linux distributions.

How to check system information

In order to check the system information, execute the following command.

uname



If you want to get the Kernal name, you have to use -s switch along with uname command.

uname -s



If you want to get the Kernal release number, you have to execute the -r switch.

uname -r



If you want to print the version of your Kernal, execute the following command.

uname -v

How to get the hostname

If you want to fetch the hostname, you have to run the following command.

uname -n

How to get a machine hardware architecture

If you want to check the machine hardware architecture, the command should look like the following.

 uname -m

If the command returns x86_64, that means it is a 64-bit architecture. However, if it shows i686 or i386, that refers to a 32-bit system.

How to get the processor type

If you want to print the type of processor, run the following command.

uname -p

How to get a hardware platform

To get the hardware platform information, run the following command.

uname -i

How to get operating system information

The following command should return the name of the operating system you are using.

uname -o

How to display all information

If you want to display all of the above information with a single command without using switches, execute.

uname -a

How to display detailed hardware information

If you want to display detailed hardware information including memory, CPU, disks, etc then you have to execute the following command on terminal.

lscpu

We have ended up our discussion on getting the hardware information in Debian version 10. Thank you for reading this article.

Vitux Staff

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago