• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nmtui Command Examples in Linux

by admin

While Linux administrators often work at the command-line, it is certainly useful to have a visual representation of network configuration options. By running the nmtui command, you can call up a text-based user interface, or TUI. Navigating a TUI is accomplished by using the Tab key, the Spacebar, the Enter key, and the arrow keys. The Tab key moves the cursor from field to field. The arrow keys are used to make selections within the field. The Enter key is used to activate a setting, such as OK or Quit. The Spacebar is used to check or uncheck a check box.

If you see that Network Manager is running, then it is installed. But to be double-sure, you can execute this command in Debian:

# aptitude search network-manager

If Network Manager is installed, you’ll see it listed as follows (there will be an i designation to the left of it). In CentOS, you can check whether Network Manager is installed or not using the following command:

# yum list installed |grep NetworkManager

The nmtui command also offers shortcut wrappers to specific tasks within the menu. These take the form of the nmtui-edit, nmtui-connect, and nmtui-hostname commands. The first two commands are useful when you already know the name of the connection profile you want to activate or edit, whereas the last command sets the hostname system-wide.

The nmtui command allows you to configure Network Manager within a shell environment, but with GUI-like controls.

nmtui command examples in linux

nmtui Command Examples

1. Open the user interface:

# nmtui

2. Show a list of available connections, with the option to activate or deactivate them:

# nmtui connect

3. Connect to a given network:

# nmtui connect name|uuid|device|SSID

4. Edit/Add/Delete a given network:

# nmtui edit name|id

5. Set the system hostname:

# nmtui hostname

Filed Under: Linux

Some more articles you might also be interested in …

  1. “mdadm: No arrays found in config file” – error on running ‘mdadm –assemble –scan’
  2. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  3. CentOS/RHEL – How to run a script or command when any user logout the ssh session
  4. awk: command not found
  5. How to disable “Alt+Ctrl+Del” causing system reboot in CentOS/RHEL 7
  6. timeshift Command Examples in Linux
  7. foreman Command Examples in Linux
  8. box: A PHP application for building and managing Phars
  9. Sample /etc/services file in Linux
  10. mocp Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ctags: Generates an index (or tag) file of language objects found in source files for many popular programming languages
  • csvtool: Utility to filter and extract data from CSV formatted sources
  • csvstat: Print descriptive statistics for all columns in a CSV file
  • csvsql: Generate SQL statements for a CSV file or execute those statements directly on a database

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright