Skip to content

Commit 7b2c16c

Browse files
le-shijaywcjlove
authored andcommitted
修复 获取主机所有网络接口 的命令 (jaywcjlove#121)
1 parent a8c812a commit 7b2c16c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

command/ip.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ default via 112.124.15.247 dev eth1
130130
**获取主机所有网络接口**
131131
132132
```shell
133-
ip link | grep ^[0-9] | awk -F: '{print $2}'
133+
ip link | grep -E '^[0-9]' | awk -F: '{print $2}'
134134
```
135135
136136
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)