1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-31 00:15:31 +02:00
tldr/pages/linux/nmcli-device.md

25 lines
753 B
Markdown
Raw Normal View History

# nmcli device
2023-08-02 07:26:52 +02:00
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
2024-10-10 10:22:22 +02:00
> More information: <https://networkmanager.pages.freedesktop.org/NetworkManager/NetworkManager/nmcli.html>.
- Print the statuses of all network interfaces:
2025-07-20 01:37:29 +03:00
`nmcli {{[d|device]}}`
- Print the available Wi-Fi access points:
2025-07-20 01:37:29 +03:00
`nmcli {{[d|device]}} {{[w|wifi]}}`
2023-08-02 07:26:52 +02:00
- Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
2025-07-20 01:37:29 +03:00
`nmcli {{[d|device]}} {{[w|wifi]}} {{[c|connect]}} {{ssid}} {{[-a|--ask]}}`
2023-08-02 07:26:52 +02:00
- Print the password and QR code for the current Wi-Fi network:
2025-07-20 01:37:29 +03:00
`nmcli {{[d|device]}} {{[w|wifi]}} {{[s|show-password]}}`
2025-07-25 22:36:05 +03:00
- Print detailed information about a device:
`nmcli {{[d|device]}} {{[sh|show]}} {{wlan0}}`