Trying to join my home network from the terminal. i can scan, but I try to join I get:

sudo iwlist wlan0 essid network name
iwlist: unknown command 'wlan0' (check 'iwlist --help')

What...