合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
``` bash # linux中查看IP地址 ifconfig (通常使用) ip addr (可以代替ifconfig)可以简写成ip a # 过滤出IP地址,可用于写shell脚本。 ifconfig -a | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{print $2}'|tr -d "addr:"|awk 'BEGIN{RS="\n";ORS=" ";}{print $0}' ```