βΉοΈ 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.
Shows something like: Linux
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.
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.
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.
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