如何取出来IP

取出来IP

ifconfig |grep "inet addr"|cut -d ':' -f 2|cut -d ' ' -f 1




/sbin/ifconfig eth0 |grep 'inet addr'|sed 's/^.*addr://g'|sed 's/Bcast.*$//g'


查看登录系统的这个月总人数

last |grep [a-zA-Z] |grep -v 'wtmp'|wc -l


你可能感兴趣的:(取ip)