snippetbashTip
nmcli device — Manage network interfaces and establish new Wi-Fi connections using NetworkManager. More information
Viewed 0 times
commandestablishandnetworkclimanagenmcli deviceinterfaces
linux
Problem
How to use the
nmcli device command: Manage network interfaces and establish new Wi-Fi connections using NetworkManager. More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#device>.Solution
nmcli device — Manage network interfaces and establish new Wi-Fi connections using NetworkManager. More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html#device>.Print the statuses of all network interfaces:
nmcli {{[d|device]}}Print the available Wi-Fi access points:
nmcli {{[d|device]}} {{[w|wifi]}}Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}Print the password and QR code for the current Wi-Fi network:
nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}Print detailed information about a device:
nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}Code Snippets
Print the statuses of all network interfaces
nmcli {{[d|device]}}Print the available Wi-Fi access points
nmcli {{[d|device]}} {{[w|wifi]}}Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password)
nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}Print the password and QR code for the current Wi-Fi network
nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}Print detailed information about a device
nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}Context
tldr-pages: linux/nmcli device
Revisions (0)
No revisions yet.