以下nmcli
连接 WiFi 的命令如果有多个单词,则无法连接SSID名称?
nmcli device wifi connect my homewifi password mypass
笔记:
SSID name: my homewifi (bad since is has 2 words)
SSID name: my (good since only has 1 word)
用一个单词的 ssid 名称连接可以,但是用多个单词连接就不好,为什么?
答案1
如果命令行中有空格,则应使用引号:
nmcli device wifi connect "my homewifi" password mypass
这会让 shellnmcli
知道这将被视为一个单词。