Forrest logo
back to the nmtui tool

nmtui:tldr:fd105

nmtui: Set the system hostname.
$ nmtui hostname
try on your machine

The nmtui hostname command is used to set or view the hostname of a Linux system using the NetworkManager Text User Interface (nmtui).

When you execute this command, it opens the nmtui graphical interface in the terminal, allowing you to interactively manage the network settings. In this case, selecting the "Hostname" option.

If you choose "Hostname" from the nmtui menu, it will display the current hostname of the system and allow you to change it if desired. You can modify the hostname by typing a new value and pressing Enter. Once you're done, you can exit the nmtui interface.

The hostname is a label or identifier assigned to a device on a network. It is used to identify and distinguish the device within a network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nmtui tool