Purpose: Quick connection activation and switching interface
Package: NetworkManager-tui
Usage: nmtui connect or nmtui-connect
nmtui-connect is the NetworkManager TUI component specifically designed for activating and deactivating network connections. It provides a streamlined interface for:
sudo nmtui connect - Launch connection managersudo nmtui-connect - Alternative commandnmtui then select "Activate a connection" - Via main menu
The nmtui-connect interface shows a list of all available and configured connections:
┌─────────────────────────────────────────────────────────────┐
│ │
│ NetworkManager TUI │
│ │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Ethernet │ │
│ │ * Wired connection 1 │ │
│ │ │ │
│ │ Wi-Fi │ │
│ │ * MyHomeNetwork ▂▄▆█ │ │
│ │ CoffeeShop-Guest ▂▄▆_ │ │
│ │ Neighbor-5G ▂▄__ │ │
│ │ PublicWiFi ▂___ │ │
│ │ <Hidden Network> │ │
│ │ │ │
│ │ VPN │ │
│ │ Corporate-VPN │ │
│ │ │ │
│ └────────────────────────────────────────────────────────┘ │
│ │
│ <Back> <Activate/Deactivate> │
│ │
└─────────────────────────────────────────────────────────────┘
| Key | Action |
|---|---|
| ↑ ↓ | Move between connections |
| Tab | Move to buttons (Back/Activate) |
| Enter | Activate/Deactivate selected connection |
| Space | Activate/Deactivate selected connection |
| Esc | Return to previous menu |
| Ctrl+L | Refresh screen (redraw) |
sudo nmtui-connect┌─────────────────────────────────────────────────┐ │ │ │ Password required for wireless network │ │ │ │ Network: CoffeeShop-Guest │ │ │ │ Password: ___________________________ │ │ [ ] Show password │ │ │ │ <Cancel> <OK> │ │ │ └─────────────────────────────────────────────────┘
sudo nmtui-connect┌─────────────────────────────────────────────────┐ │ │ │ Connect to hidden Wi-Fi network │ │ │ │ Network name (SSID): ___________________ │ │ │ │ Security: <WPA & WPA2 Personal> │ │ │ │ Password: ___________________________ │ │ [ ] Show password │ │ │ │ <Cancel> <OK> │ │ │ └─────────────────────────────────────────────────┘
sudo nmtui-connectsudo nmtui-connectSignal strength indicators help you choose the best connection:
| Display | Signal Strength | Description |
|---|---|---|
▂▄▆█ |
Excellent (75-100%) | Strong, stable connection expected |
▂▄▆_ |
Good (50-75%) | Reliable connection |
▂▄__ |
Fair (25-50%) | Usable but may have occasional issues |
▂___ |
Weak (0-25%) | Poor connection, frequent drops likely |
▂▄▆_ (Good) signal strength. Weak signals can cause timeouts and disconnections.
nmcli connection shownmcli device showsudo journalctl -u NetworkManager -f
lsmod | grep wifinmcli radio wifinmcli radio wifi onnmcli device wifi list
sudo nmcli connection down "Connection Name"sudo systemctl restart NetworkManager
| Security Type | Security Level | Usage |
|---|---|---|
| WPA3 Personal | 🔒🔒🔒 Excellent | Modern networks, strongest encryption |
| WPA2 Personal | 🔒🔒 Good | Standard for most networks |
| WPA Personal | 🔒 Fair | Legacy support only |
| WEP | ⚠️ Broken | Never use - easily cracked |
| None (Open) | ❌ None | Avoid unless absolutely necessary |
For frequently used connections, create helper scripts:
nmcli connection up "MyHomeNetwork"nmcli connection up "OfficeWiFi"nmcli connection up "Corporate-VPN"
Connections can be set to auto-connect (configured in nmtui-edit):
watch -n 2 nmcli connection show --activesudo journalctl -u NetworkManager -fnmcli networking connectivity check
#!/bin/bash
# Switch to best available network
if nmcli connection up "Ethernet1" 2>/dev/null; then
echo "Connected via Ethernet"
elif nmcli connection up "HomeWiFi" 2>/dev/null; then
echo "Connected via WiFi"
else
echo "No connection available"
fi
ping -c 3 8.8.8.8ping -c 3 google.com