1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 04:17:55 +01:00
tldr/pages/osx/networksetup.md
2014-03-04 23:28:29 +11:00

19 lines
530 B
Markdown

# networksetup
> Configuration tool for Network System Preferences
- List available network service providers (Ethernet, Wi-Fi, Bluetooth, etc)
`networksetup -listallnetworkservices`
- Show network settings for a particular networking device
`networksetup -getinfo {{"Wi-Fi"}}`
- Get currently connected Wi-Fi network name (Wi-Fi device usually en0 or en1)
`networksetup -getairportnetwork {{en0}}`
- Connect to a particular Wi-Fi network
`networksetup -setairportnetwork {{en0}} {{"Airport Network SSID"}} {{password}}`