hostnamectl
SystemFundamentalsReference onlyShow or set the host name and system info
Name: hostnamectl = hostname control
This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.
Description
hostnamectl, part of systemd, shows and permanently sets the host name, and also reports the OS, kernel, architecture and virtualisation type.
Syntax
hostnamectl [COMMAND]Common options
| status | Show the host name, system and kernel (as with no arguments) |
| set-hostname | Change the host name permanently |