Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 71794  / 1 Year ago, wed, march 8, 2023, 6:27:35

Since my laptop doesnt have a Wireless Network LED indicator, I want to know if there is a command to verify if it is on or off (I'm installing the wireless drivers, so I can't tell if it is set on or off by seeing the list of wireless conections next to the clock)


More From » wireless

 Answers
1

Edit:


nmcli changed a lot (I am using 16.04) from its previous version. See the original answer below.


To see the connectivity status


$ nmcli general status
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected full enabled enabled enabled enabled

To see only wifi status


$ nmcli radio  wifi 
enabled

To see the active connection


$ nmcli connection show --active
NAME UUID TYPE DEVICE
VolCSe 5u6h4521-7k1p-20r3-3g4x-fg19his0j3s8 802-11-wireless wlp2s0

There are some nice addlitions like, to get the available wifi network informations,


$ nmcli device wifi 
* SSID MODE CHAN RATE SIGNAL BARS SECURITY
* VolCSe Infra 1 54 Mbit/s 73 ▂▄▆_ WPA2
Sach Infra 4 54 Mbit/s 55 ▂▄__ WPA1 WPA2
iKCP Infra 5 54 Mbit/s 24 ▂___ WPA2
TP-LINK_POCKET_3 Infra 1 54 Mbit/s 12 ▂___ WPA1 WPA2

Note: I have used fictitious ssid and uuid info above.




Old answer:


You can use nmcli for this purpose. Open a terminal type in terminal,


nmcli nm

You will have output like,


RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN      
running connected disabled disabled enabled disabled

See the third and fourth column which contains information of your interest.


If you want to be more specific only to wifi, then try in terminal,


nmcli nm wifi

it will show the wifi status only,


WIFI      
disabled

[#27723] Friday, March 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;