← 返回命令列表

Linux command

nmtui 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

nmtui

List available connections

nmtui connect

Connect

nmtui connect [name|uuid|device|SSID]

Edit/Add/Delete

nmtui edit [name|id]

Example

nmtui hostname

说明

nmtui (NetworkManager Text User Interface) provides a curses-based interface for configuring network connections managed by NetworkManager. It offers a more user-friendly alternative to nmcli for users who prefer visual navigation. Use arrow keys to navigate menus, Enter to select items, and Escape to go back or cancel. The interface allows configuring Ethernet, Wi-Fi, VPN, and other connection types supported by NetworkManager. Without arguments, nmtui presents a main menu with options to edit connections, activate connections, or set the hostname. Subcommands can jump directly to specific functions.

参数

connect
List connections and allow activation/deactivation
edit
Add, modify, or delete network connections
hostname
Change the system hostname

FAQ

What is the nmtui command used for?

nmtui (NetworkManager Text User Interface) provides a curses-based interface for configuring network connections managed by NetworkManager. It offers a more user-friendly alternative to nmcli for users who prefer visual navigation. Use arrow keys to navigate menus, Enter to select items, and Escape to go back or cancel. The interface allows configuring Ethernet, Wi-Fi, VPN, and other connection types supported by NetworkManager. Without arguments, nmtui presents a main menu with options to edit connections, activate connections, or set the hostname. Subcommands can jump directly to specific functions.

How do I run a basic nmtui example?

Run `nmtui` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does connect do in nmtui?

List connections and allow activation/deactivation