GO KALI FREE
System Information

hostnamectl Linux Command

Displays and changes the system hostname and related settings.

What does hostnamectl do?

Displays and changes the system hostname and related settings.

Syntax

hostnamectl [options]

Practical example

hostnamectl status

Related System Information

uptime

Shows how long the system has been running along with load averages.

lscpu

Displays detailed CPU architecture information.

uname

Prints system information such as kernel name, version, and architecture.

lsblk

Lists information about all available block devices (disks and partitions).

unalias

Removes a previously defined command alias.

lspci

Lists all PCI devices connected to the system (graphics cards, network adapters).