UNIXETC
HOME
ETC
README
TAGS
显示当前使用的网络接口
Posted at — Apr 29, 2021
$ ip addr | awk '/state UP/ {print $2}' | sed 's/.$//'
输出结果
eth0 eth1
linux
ip
awk
sed
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus