如何nmcli
按名称删除 wifi 连接?
据我所知,它只允许通过 UUID 删除:
nmcli connection delete <uuid>
我发现按名称删除的最简单方法是从名称中查找 UUID 并将其传入:
nmcli con delete `nmcli --fields NAME,UUID con list | grep -i mynetworkname | awk '{print $2}'`
有没有更简单的方法?
答案1
要删除 wifi 连接类型:
nmcli connection delete id <connection name>
答案2
您只需输入
nmcli connection delete CONNECTION_NAME
答案3
要永久删除:
systemctl stop NetworkManager
rm /etc/NetworkManager/system-connections/dummy-dummy0.nmconnection
systemctl startNetworkManager
答案4
nmcli -f bridge con delete bridge-br0
这将为您删除它