From 29c53b754d05fbe28df8062681112c58df2debb2 Mon Sep 17 00:00:00 2001 From: VHarisop Date: Tue, 8 Mar 2016 04:06:44 +0200 Subject: [PATCH 1/2] Added nmcli cheatsheet --- cheat/cheatsheets/nmcli | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cheat/cheatsheets/nmcli 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 From f204ed66e1420cbadd500fd814ce7f2c47db09bf Mon Sep 17 00:00:00 2001 From: VHarisop Date: Fri, 11 Mar 2016 03:41:26 +0200 Subject: [PATCH 2/2] Added WiFi-specific commands --- cheat/cheatsheets/nmcli | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cheat/cheatsheets/nmcli b/cheat/cheatsheets/nmcli index b404386..3623470 100644 --- a/cheat/cheatsheets/nmcli +++ b/cheat/cheatsheets/nmcli @@ -10,6 +10,18 @@ nmcli d wifi connect password iface # -- the name of your wireless interface nmcli d wifi disconnect iface +# Get WiFi status (enabled / disabled) +nmcli radio wifi + +# Enable / Disable WiFi +nmcli radio wifi + +# Show all available WiFi access points +nmcli dev wifi list + +# Refresh the available WiFi connection list +nmcli dev wifi rescan + # Show all available connections nmcli con