• 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

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. How to clear the buffer/pagecache (disk cache) under Linux
  2. bat Command Examples in Linux
  3. at Command Examples in Linux
  4. acountry Command Examples in Linux
  5. nmcli radio Command Examples in Linux
  6. adig Command Examples in Linux
  7. asterisk: command not found
  8. dpkg-scanpackages: command not found
  9. v4l2-ctl: command not found
  10. partprobe: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • 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

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright