diff --git a/cheat/cheatsheets/nmcli b/cheat/cheatsheets/nmcli new file mode 100644 index 0000000..b404386 --- /dev/null +++ b/cheat/cheatsheets/nmcli @@ -0,0 +1,28 @@ +# Desc: Command line interface to NetworkManager + +# Connect to a wireless access point - Parameters: +# -- the name of your wireless interface +# -- the SSID of the access point +# -- the WiFi password +nmcli d wifi connect password iface + +# Disconnect from WiFi - Parameters: +# -- the name of your wireless interface +nmcli d wifi disconnect iface + +# 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: +# -- the name of the connection +# -- the name of the interface +ncmli con add type ethernet con-name ifname + +# Bring up the ethernet connection +nmcli con up