I want to know how to control (specifically turn off) the networking (specifically AirPort – I want to turn off the radio) from the command line (specifically from bash in Terminal.app, being run by me) as a user (no sudo privileges or admin priviliges). You CAN turn off AirPort as a user, but I need to do this from the command line – as a user.
MacOS – How to control AirPort wireless radio from the command line
airportcommand linemacosNetworkterminal
Related Question
- MacOS – Mavericks – VPN command line
- Why is same privileged bash command giving different information from script than from command line
- MacOS – None of the admin accounts are sudo users
- Is it possible to query the current user’s Apple ID from the command line
- VLC command line volume control
- MacOS – Simulate user login using command-line utilities
Best Answer
See OSX Daily - Enable and Disable AirPort Wireless from the Command Line in Mac OS X. Quote:
NOTE: In OS X Lion, use the hardware name above instead of
airport
,e.g.
networksetup -setairportpower en1 off
.