nmcli参数的各种缩写
配置参数的三种写法:
- nmcli con mod team0 ipv4.addresses 192.168.121.10/24 ipv4.gateway 192.168.121.1 +ipv4.dns 8.8.8.8 +ipv4.dns 114.114.114.114 ipv4.method manual
-
- nmcli con mod team0 ipv4.addresses 192.168.121.10/24 ipv4.gateway 192.168.121.1 ipv4.dns "8.8.8.8 114.114.114.114" ipv4.method manual
-
- nmcli con mod team0 ip4 192.168.121.10/24 gw4 192.168.121.1 ipv4.dns "8.8.8.8 114.114.114.114" ipv4.method manual
直接参数的三种写法
- nmcli connection show
- nmcli con show
- nmcli c show
只显示NAME一列,-g 显示不包含头
- nmcli -g NAME c show
- nmcli -f NAME c show
显示结果以冒号分割,去掉所有空格
- nmcli -t c show