nmcli is a command-line tool for controlling NetworkManager, a network management service in Linux. The nmcli radio command is used to display the status of radio switches on the network interface, such as Wi-Fi, Bluetooth, and others.
The nmcli radio command can be used to show the status of each radio switch (enabled or disabled) or to enable or disable the switches. For example, to show the status of Wi-Fi, you can run nmcli radio wifi. To enable or disable Wi-Fi, you can run nmcli radio wifi on or nmcli radio wifi off.
It’s important to note that the ability to control radio switches depends on the underlying network hardware and its support for NetworkManager. If a radio switch is not supported, the nmcli radio command will not display it or allow you to control it.
nmcli radio Command Examples
1. Show status of Wi-Fi in NetworkManager:
# nmcli radio wifi
2. Turn Wi-Fi on or off in NetworkManager:
# nmcli radio wifi {{on|off}}
3. Show status of WWAN in NetworkManager:
# nmcli radio wwan
4. Turn WWAN on or off in NetworkManager:
# nmcli radio wwan {{on|off}}
5. Show status of both switches in NetworkManager:
# nmcli radio all
6. Turn both switches on or off in NetworkManager:
# nmcli radio all {{on|off}}