iw

lspci -k, to check if the driver for your card has been loaded.
lsusb -v; dmesg | grep usbcore, to check usb card.
ip link set wlan0 up
ip link show wlan0

iw list
iw event
iw event -f
iw event -t

iw dev wlan0 link, Getting link status.
iw dev wlan0 scan, Scanning for available access points.
iw dev wlan0 set type ibss, Setting the operation mode to ad-hoc.
iw phy phy0 interface add wlan10 type managed
iw phy phy0 interface add moni0 type monitor
iw dev wlan0 connect your_essid, Connecting to open network.
iw dev wlan0 connect your_essid 2432, Connecting to open network specifying channel.
iw dev wlan0 connect your_essid key 0:your_key, Connecting to WEP encrypted network using hexadecimal key.
iwconfig wlan0 essid your_essid key s:your_key Connecting to WEP encrypted network using ASCII key.

iw dev set txpower []
iw phy set txpower []
iw dev wlan0 set power_save on Enabling power save.

iw dev, get the name of wireless interface
iw dev wlan0 link, check link status
iw dev wlan0 station dump, get statistic information
iw dev wlan0 scan, discover access points

rfkill caveat

Many laptops have a hardware button (or switch) to turn off wireless card, however, the card can also be blocked by kernel. This can be handled by rfkill. To show the current status:

rfkill list

0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: yes

If the card is hard-blocked, use the hardware button (switch) to unblock it. If the card is not hard-blocked but soft-blocked, use the following command:
rfkill unblock wifi