• 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

nmcli device Command Examples in Linux

by Deepika

nmcli (NetworkManager Command Line Interface) is a command-line tool for controlling NetworkManager, a network management software for Linux. The device subcommand is used for managing hardware devices, including wired and wireless network interfaces, that are managed by NetworkManager. This subcommand can be used to list, show details of, activate, deactivate, and configure network devices.

The nmcli d shorthand can be used instead of nmcli device for convenience.

nmcli device Command Examples

1. Print the statuses of all network interfaces:

# nmcli device status

2. Print the available Wi-Fi access points:

# nmcli device wifi

3. Connect to the Wi-Fi network with a specified name and password:

# nmcli device wifi connect {{ssid}} password {{password}}

4. Print password and QR code for the current Wi-Fi network:

# nmcli device wifi show-password

Filed Under: Linux

Some more articles you might also be interested in …

  1. jenv Command Examples
  2. jmap Command Examples
  3. cupsd: Server daemon for the CUPS print server
  4. Understanding /etc/hosts file in Linux
  5. cmus : command not found
  6. duc Command Examples in Linux
  7. crontab Command Examples in Linux
  8. How to Audit for Modifications to files and Executions of Files in Linux
  9. date: command not found
  10. locale Command Examples in Linux

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