mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
Added nmcli cheatsheet
This commit is contained in:
parent
c0aad062ec
commit
29c53b754d
28
cheat/cheatsheets/nmcli
Normal file
28
cheat/cheatsheets/nmcli
Normal file
@ -0,0 +1,28 @@
|
||||
# Desc: Command line interface to NetworkManager
|
||||
|
||||
# Connect to a wireless access point - Parameters:
|
||||
# <wiface> -- the name of your wireless interface
|
||||
# <ssid> -- the SSID of the access point
|
||||
# <pass> -- the WiFi password
|
||||
nmcli d wifi connect <ssid> password <pass> iface <wiface>
|
||||
|
||||
# Disconnect from WiFi - Parameters:
|
||||
# <wiface> -- the name of your wireless interface
|
||||
nmcli d wifi disconnect iface <wiface>
|
||||
|
||||
# Show all available connections
|
||||
nmcli con
|
||||
|
||||
# Show only active connections
|
||||
nmcli con show --active
|
||||
|
||||
# Review the available devices
|
||||
nmcli dev status
|
||||
|
||||
# Add a dynamic ethernet connection - parameters:
|
||||
# <name> -- the name of the connection
|
||||
# <iface_name> -- the name of the interface
|
||||
ncmli con add type ethernet con-name <name> ifname <iface_name>
|
||||
|
||||
# Bring up the ethernet connection
|
||||
nmcli con up <name>
|
Loading…
Reference in New Issue
Block a user