airodump

sudo apt-get install aircrack-ng
sudo airmon-ng
sudo airmon-ng start wlan0
airodump-ng mon0
airodump-ng --bssid 00:00:00:00:00:00 --write test-wifi mon0
sudo airmon-ng stop mon0

other

sudo iwconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo iwconfig wlan0 up
sudo iwconfig wlan0