Joh*_*ald 4 network-manager networking interface nmcli
我想使用 nmcli 命令打开我的界面。命令nmcli device connect wlp2s0对我不起作用,它给了我这个错误:
Error: Failed to add/activate new connection: A 'wireless' setting is required if no AP path was given.
有任何想法吗 ?谢谢。
根据手册页
nmcli radio {all | wifi | wwan} [ARGUMENTS...]
Show radio switches status, or enable and disable the switches.
wifi [on | off]
Show or set status of Wi-Fi in NetworkManager. If no arguments are supplied, Wi-Fi
status is printed; on enables Wi-Fi; off disables Wi-Fi.
wwan [on | off]
Show or set status of WWAN (mobile broadband) in NetworkManager. If no arguments are
supplied, mobile broadband status is printed; on enables mobile broadband, off
disables it.
all [on | off]
Show or set all previously mentioned radio switches at the same time.
Run Code Online (Sandbox Code Playgroud)
nmcli radio wifi on
| 归档时间: |
|
| 查看次数: |
9451 次 |
| 最近记录: |