Progress: 0/62 (0%)

ℹ️ Viewing System Information

Viewing System Information

Think of this as checking the ID card and specs of your computerβ€”you want to know what kind of machine it is, what resources it has, and how it's organized.

uname – System Name

What it is: Shows basic info about the kernel and OS.

Analogy: Like checking the brand and model of your car.

uname

Shows something like: Linux

uname -a

More detailed: Returns: Kernel version, hostname, architecture, OS info, etc.

hostnamectl – Host and OS Details

What it is: Provides detailed information about the system's hostname and OS.

Analogy: Like looking at the official registration papers of your car.

hostnamectl
πŸ“Œ Example:
Static hostname: master-PC
Operating System: Ubuntu 22.04
Kernel: Linux 6.2.0
Architecture: x86_64

lscpu – CPU Info

What it is: Shows details about the processor.

Analogy: Like checking the engine specs of a car.

lscpu

Output includes: CPU cores, threads, architecture, speed, etc.

lsblk – Block Devices

What it is: Lists all storage devices and partitions in a tree view.

Analogy: Like looking at a map of all your bookshelves, drawers, and boxes in your house.

lsblk
πŸ“Œ Example:
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0  100G  0 disk 
β”œβ”€sda1   8:1    0   50G  0 part /
β”œβ”€sda2   8:2    0   50G  0 part /home

Real-life analogy

Summary analogy:
uname β†’ OS brand/model
hostnamectl β†’ official system registration
lscpu β†’ engine (CPU) specs
lsblk β†’ map of storage devices