Hardware and System Information Commands in Linux (original) (raw)

Last Updated : 7 Jan, 2026

Hardware and system information commands in Linux are used to display details about the system’s hardware components and resource usage. These commands help users and administrators monitor CPU, memory, disks, power status, and connected devices, making them essential for system monitoring, troubleshooting, and performance analysis.

These commands are commonly used to:

Below are some important Hardware and System Information Commands in Linux.

hardware_and_system_information_commands

1. acpi

The acpi command displays power-related information such as battery status and thermal data.

**Syntax:

acpi [options]

**Example:

acpi -b

Lightbox

2. acpi_available

The acpi_available command checks whether ACPI support is available on the system.

**Syntax:

acpi_available

info acpi_available

3. acpid

The acpid command manages ACPI events and power management actions.

**Syntax:

acpid [options]

**Examples:

acpid -help

help

This command in used to shows help and exits.

4. arch

The arch command displays the system architecture.

**Syntax:

arch

**Example:

arch

file

arch command is running it without any options to print the system's architecture.

5. dmesg

The dmesg command displays kernel ring buffer messages.

**Syntax:

dmesg [options]

**Example:

dmesg | less

6. dmidecode

The dmidecode command displays detailed hardware information from the BIOS.

**Syntax:

dmidecode [options]

**Example:

sudo dmidecode

file

7. dstat

The dstat command provides real-time system resource statistics.

**Syntax:

dstat [options]

**Example:

dstat

dstat command in Linux

8. free

The free command displays memory usage information.

**Syntax:

free [options]

**Example:

free

Lightbox

Free command without any option shows the used and free space of swap and physical memory in **KB

9. hdparm

The hdparm command is used to view and configure hard disk parameters.

**Syntax:

hdparm [options] device

**Example:

sudo hdparm -I /dev/sda2

file

10. hwclock

The hwclock command displays or sets the hardware clock.

**Syntax:

hwclock [options]

**Example:

hwclock
hwclock-r
hwclock --show

To display the Hardware Clock Date and Time

11. iostat

The iostat command displays CPU and disk I/O statistics.

**Syntax:

iostat [options]

**Example:

iostat

12. iotop

The iotop command monitors disk I/O usage by processes.

**Syntax:

iotop [options]

**Example:

sudo iotop

iotop-command-in-liunx

This command will now display the list of processes and their current disk usage and will keep on updating the same.

13. lsusb

The lsusb command lists USB devices connected to the system.

**Syntax:

lsusb

**Example:

lsusb

Lightbox

Running the command without any options will list all USB devices connected to the system, showing basic information like the device ID and a brief description.

14. lshw

The lshw command displays detailed hardware configuration.

**Syntax:

lshw [-format] [-options ...]

**Example:

sudo lshw

display full hardware information

This command display full hardware information

15. uname

The uname command displays system and kernel information.

**Syntax:

uname [options]

**Example:

uname -a

'-a' option in uname Command in Linux

This prints all the system information in the following order: Kernel name, network node hostname, kernel release date, kernel version, machine hardware name, hardware platform, operating system.