I wanted to check which wireless AP my new Mac had connected to, so I entered the command:
…but it didn’t work! I’d become so used to using this on my MBP that I’d forgotten that this command was not automatically available. After assuming that it had been removed in the Lion version of OS X, I went googling for a replacement command, and when I found this site I remembered that I’d been there before, and this was how I got the airport command on my MBP in the first place:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
I am now happily able to use the airport command on my new Mac. This shows me the BSSID and Channel of the AP that I have connected to.