I'm looking for a command line tool in Mac OS X that performs the equivalent of the iwconfig command in Linux.
Example:
kirkland@x220:~/src/byobu/byobu$ iwconfig wlan0
wlan0 IEEE 802.11abgn ESSID:"serenity"
Mode:Managed Frequency:2.462 GHz Access Point: 00:11:22:33:44:55
Bit Rate=1 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=70/70 Signal level=-17 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:70 Missed beacon:0
man airport, butairporton its own doesn't seem to exist on my system (Mac OSX 10.13.6). – crs1138 Feb 14 '19 at 18:28/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport? – nohillside Feb 15 '19 at 06:57ifconfig en1andairport -I(with the full path given in @nohillside's comment) work on OSX – Joshua Goldberg Feb 28 '22 at 15:24