• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

iw: command not found

by Deepika

The iw (short for “wireless”) command is a command-line tool for displaying and manipulating wireless devices on Linux systems. It provides a set of subcommands for performing various tasks related to wireless network management, such as scanning for available wireless networks, connecting to a wireless network, and getting the status of the current wireless connection.

Some common iw commands include:

  • iw dev: This command displays a list of available wireless devices on the system.
  • iw scan: This command scans for available wireless networks and displays information about them, such as their SSID, signal strength, and encryption type.
  • iw connect: This command connects to a specific wireless network.
  • iw link: This command displays the status of the current wireless connection, including the connected network’s SSID, signal strength, and encryption type.
  • iw config: This command allows the user to configure wireless devices, such as setting the device’s channel, bitrate, or transmit power.

Iw can also be used to configure advanced wireless settings like creating a wireless mesh network, setting up a hotspot, or setting up a wireless card in monitor mode. The iw tool is designed to be simple and easy to use, and it is available on most Linux distributions. It can be used as an alternative or complement to other wireless management tools like iwctl, wpa_supplicant, and NetworkManager.

If you encounter the below error while running the command iw:

iw: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install iw
Ubuntu apt-get install iw
Alpine apk add iw
Arch Linux pacman -S iw
Kali Linux apt-get install iw
CentOS yum install iw
Fedora dnf install iw
Raspbian apt-get install iw

iw Command Examples

1. Scan for available wireless networks:

# iw dev wlp scan

2. Join an open wireless network:

# iw dev wlp connect SSID

3. Close the current connection:

# iw dev wlp disconnect

4. Show information about the current connection:

# iw dev wlp link

Filed Under: Linux

Some more articles you might also be interested in …

  1. apt-file: command not found
  2. Configure VSFTPD Chroot Environment in CentOS and RHEL
  3. How To Create/Remove and Mount a Stratis Filesystem in CentOS/RHEL 8
  4. How to Compress and Decompress .bz2 files in Linux Using bzip2 Command
  5. w Command Examples in Linux
  6. mke2fs Command Examples in Linux
  7. makepkg Command Examples in Linux
  8. What is the difference between the -i and -U options used in rpm command in Linux
  9. Magento 2.3.3 Redis cache grows unlimited
  10. chgrp Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright