• 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 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. colorls: A Ruby gem that beautifies the terminal’s ls command, with color and font-awesome icons
  2. pacman4console: command not found
  3. kill Command Examples in Linux
  4. qm Command Examples in Linux
  5. aws lambda: CLI for AWS lambda (Command Examples)
  6. Linux OS Service ‘NetFS’
  7. How to Trace Python Scripts using trace.py
  8. How to use “btrfs scrub” command to manage scrubbing on Btrfs file systems
  9. Linux filesystem is filling, despite no large files or directories
  10. How to install and configure “setroubleshootd” on CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code
  • cryfs: A cryptographic filesystem for the cloud

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright