O'Reilly logo

Learning RHEL Networking by Andrew Mallett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extreme interaction with NetworkManager using nmcli

For those who believe that the only true form of Linux is without the aid of menus, using solely the wisdom handed down to you through your Jedi parentage, we have the extreme sport of nmcli. Joking aside, working with the NetworkManager in this way, without interaction of menus, will allow you to make changes in scripts, which can then be implemented across many systems.

As a simple starter, we can use nmcli to scan for available Wi-Fi networks; the output should show you the Wi-Fi SSID and strength as follows:

$ nmcli device wifi list

This procedure is greatly simplified compared to the traditional command-line mechanism we have used before to display SSIDs with the iw command:

$ sudo iw wlp12s0 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required