设置wifi连接优先级
查看当前可用 wifi
1 | $ nmcli dev wifi list |
连接 wifi
1 | $ sudo nmcli dev wifi connect xxx password xxx |
管理网络
1 | $ nmcli con show |
关闭某连接
1 | $ nmcli con down xxx |
启动某连接
1 | $ nmcli con up xxx |
设置连接优先级
1 | $ nmcli connection modify xxx connection.autoconnect-priority 20 |
优先级默认为 0,正数优先级高,负数低
查看优先级
1 | $ nmcli connection show xxx|grep priority |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.