iw command not found

In this troubleshooting guide we learn how to fix iw command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

iw: command not found

or when using sudo you get the following error message

sudo: iw: command not found

Solutions to iw: command not found

How To Fix iw: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iw is provided by iw package.

iw is:

This package contains the ‘iw’ command line tool which allows to configure and show information about wireless devices.

iw is based on the nl80211 kernel interface and supports the majority of fairly recent hardware. The old tool iwconfig, which uses Wireless Extensions interface, is deprecated and it is strongly recommended to switch to iw and nl80211.

To fix this problem, we can install more using the command below.

sudo apt-get -y install iw

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install iw.

sudo apt -y install iw

Or if you have aptitude installed you can use the following command.

sudo aptitude install iw

Summary

In this tutorial we learn how to fix iw command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.