Managing wireless connections on Linux command line

Basic setup

This is based on Debian/Ubuntu but with some minor modification should work on any Linux distribution

First let’s install some tools so we can manage our wifi adapter

apt install wireless-tools

we can now scan for available wifi connections by running the following command

iwlist wlan0 scan

If you get the following error

wlan0 Interface doesn’t support scanning : Network is down

it is because you need to bring up the device before you can start scanning for wifi connections. We do this by running the following command

ifconfig wlan0 up

Connecting to the wireless network

Leave a Reply

Your email address will not be published. Required fields are marked *