如何通过网络管理器按名称删除连接


16

如何使用nmcli名称删除wifi连接?

根据我的阅读,它仅允许通过UUID删除:

nmcli connection delete <uuid>

我发现按名称删除的最简单方法是从名称中查找UUID并将其传递给:

nmcli con delete `nmcli --fields NAME,UUID con list | grep -i mynetworkname | awk '{print $2}'`

有没有更简单的方法?

Answers:


12

要删除wifi连接,请输入:

nmcli connection delete id <connection name>

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.