From 444d40ac9ab1a21a52e175e13b3aedd607807330 Mon Sep 17 00:00:00 2001 From: JEphron Date: Tue, 3 Nov 2015 12:07:29 -0500 Subject: [PATCH] Add more Wi-Fi commands --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9f2fd92..0e07be8 100644 --- a/README.md +++ b/README.md @@ -774,6 +774,11 @@ dig +short myip.opendns.com @resolver1.opendns.com ### Wi-Fi +#### Join a Wi-Fi Network +```bash +networksetup -setairportnetwork en0 WIFI_SSID WIFI_PASSWORD +``` + #### Scan Available Access Points Create a symbolic link to the airport command for easy access: ```bash @@ -805,6 +810,11 @@ Exchange SSID with the SSID of the access point you wish to query the password f security find-generic-password -D "AirPort network password" -a "SSID" -gw ``` +#### Turn on Wi-Fi Adapter +```bash +networksetup -setairportpower en0 on +``` + ## Package Managers - [Fink](http://www.finkproject.org) - The full world of Unix Open Source software for Darwin.