Do you want to know how to enable or disable AirPort wireless from the Command Line of Mac OS X? Well, You can enable or disable AirPort wireless from the Command Line of Mac OS X without using the System Preferences or menu item. When troubleshooting an AirPort wireless connection problem the easiest fix is to turn on and turn off AirPort. If you don’t know how to do it then simply follow the steps posted below using which you can enable and disable AirPort wireless from the Terminal of Mac OS X.
How to Enable and Disable AirPort Wireless from Mac OS X Terminal
STEP 1. First you have to open the Terminal of Mac OS X, then enter the following command in order to turn Airport on:
networksetup -setairportpower airport on
STEP 2. Now simply enter the following command in the terminal to turn Airport off:
networksetup -setairportpower airport off
That’s it. In this way you can enable and disable AirPort wireless from the command line of Mac OS X. If you found any difficulty in following the above steps then feel free to ask in the comment section below. [Via]