Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I print out information about a Wireless Access Point in range? Can I for example get the MAC address?

share|improve this question
up vote 4 down vote accepted

You can use

iwlist <interface> scan

For example:

iwlist wlan0 scan

Also, using pipes and egrep, and practicing a little with iwlist scan, you can extract the info you want:

iwlist wlan0 scan | egrep 'Address:|ESSID:'
share|improve this answer

If you are on Linux then you can usually just do




to get info on your NIC. To scan you usually do

iwlist wlan0 scan

to get info on the wireless access points in range. In this case your wireless interface has already been identified using ifconfig (or iwconfig) as wlan0.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.