mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 10:47:20 +00:00
Update cheatsheets
This commit is contained in:
26
linux/nmcli-device
Normal file
26
linux/nmcli-device
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nmcli device
|
||||
|
||||
> Manage network interfaces and establish new Wi-Fi connections using NetworkManager.
|
||||
> This subcommand can also be called with `nmcli d`.
|
||||
> More information: <https://networkmanager.dev/docs/api/latest/nmcli.html>.
|
||||
|
||||
- Print the statuses of all network interfaces:
|
||||
|
||||
`nmcli device status`
|
||||
|
||||
- Print the available Wi-Fi access points:
|
||||
|
||||
`nmcli device wifi`
|
||||
|
||||
- Connect to a Wi-Fi network with the specified SSID (you will be prompted for a password):
|
||||
|
||||
`nmcli --ask device wifi connect {{ssid}}`
|
||||
|
||||
- Print the password and QR code for the current Wi-Fi network:
|
||||
|
||||
`nmcli device wifi show-password`
|
||||
Reference in New Issue
Block a user