---
name: "nmtui-hostname"
section: "1"
platform: "linux"
package: "networkmanager"
version: "1.58.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/nmtui-connect"
---

# nmtui-hostname(1)

Text User Interface for controlling NetworkManager

Part of [nmtui-connect(1)](/nmtui-connect/1.md).

## NAME

nmtui - Text User Interface for controlling NetworkManager

## SYNOPSIS

**nmtui-edit \| nmtui edit**  {*name* \| *id*}

**nmtui-connect \| nmtui connect**  {*name* \| *uuid* \| *device* \| *SSID*}

**nmtui-hostname \| nmtui hostname**

## DESCRIPTION

**nmtui** is a curses‐based TUI application for interacting with NetworkManager. When starting **nmtui**, the user is prompted to choose the activity to perform unless it was specified as the first argument.

The supported activities are:

**edit**

Show a connection editor that supports adding, modifying, viewing and deleting connections. It provides similar functionality as **nm-connection-editor**.

For Wi-Fi connections, the **Share QR...** button displays a QR code that encodes the network credentials, so they can be scanned to join the network from another device. When the password is available, it is shown alongside the code; when it cannot be read (for example, due to insufficient privileges), a warning is shown instead.

**connect**

Show a list of available connections, with the option to activate or deactivate them. It provides similar functionality as **nm-applet**.

**hostname**

Set the system hostname.

Corresponding to above activities, **nmtui** also comes with binaries named **nmtui-edit**, **nmtui-connect**, and **nmtui-hostname** to skip the selection of the activities.

## SEE ALSO

[**nmcli**(1)](/nmcli/1.md), [**nm-applet**(1)](/nm-applet/1.md), [**nm-connection-editor**(1)](/nm-connection-editor/1.md), [**NetworkManager**(8)](/NetworkManager/8.md).
