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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

iw Command Examples in Linux

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.

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. Basic “chmod” Command examples in Linux
  2. latex Command Examples
  3. javac Command Examples
  4. macchanger Command Examples in Linux
  5. netselect-apt Command Examples in Linux
  6. dvc checkout: Checkout data files and directories from cache
  7. sxiv: command not found
  8. autopkgtest: command not found
  9. a2dissite: command not found
  10. amass intel – Collect open source intel on an organisation like root domains and ASNs

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright