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 statusRelated System Information
uptimeShows how long the system has been running along with load averages.
lscpuDisplays detailed CPU architecture information.
unamePrints system information such as kernel name, version, and architecture.
lsblkLists information about all available block devices (disks and partitions).
unaliasRemoves a previously defined command alias.
lspciLists all PCI devices connected to the system (graphics cards, network adapters).