This commit is contained in:
nm1 2026-11-04 00:33:23 +05:30
commit 74ae93a96e

View file

@ -0,0 +1,28 @@
connect wifi
https://www.makeuseof.com/connect-to-wifi-with-nmcli/
https://wiki.archlinux.org/title/Network_configuration/Wireless
- Check network status by
`nmcli dev status`
- Also make sure that services NetworkManager,wpa_supplicant is started and enabled
`sudo systemctl enable --now NetworkManager`
- Check if wifi is enabled or not by
`nmcli radio wifi`. if not enabled then type `nmcli radio wifi on` .
- Check available wifi networks using
`nmcli dev wifi list`
- Connecting to specific network
To connect with no password
`sudo nmcli dev wifi connect network-ssid`
Eg: `sudo nmcli dev wifi connect fiber-2`
To connect with password
`sudo nmcli dev wifi connect network-ssid password <password>`
Eg : if password is pass then
`sudo nmcli dev wifi connect network-ssid password pass`
For interactive password typing ie taking input in order to hide it
`sudo nmcli --ask dev wifi connect network-ssid`
- View saved connections
`nmcli con show`
- Connect another saved connection
`nmcli con up ssid/uuid`