标签:
# last | egrep ‘(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])‘ | tr -s " " |cut -d" " -f3 | uniq -c 呵呵呵呵呵呵
Xshell 5 (Build 0788) Copyright (c) 2002-2015 NetSarang Computer, Inc. All rights reserved. Type `help‘ to learn how to use Xshell prompt. [d:\~]$ Connecting to 172.18.19.92:22... Connection established. To escape to local shell, press ‘Ctrl+Alt+]‘. Last login: Mon Aug 8 08:37:22 2016 from 172.18.19.177 [root@localhost ~]# ^C [root@localhost ~]# screen -ls There is a screen on: 43529.talk (Attached) 1 Socket in /var/run/screen/S-root. [root@localhost ~]#
[root@localhost ~]# ifconfig | egrep ‘(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])‘ inet 172.18.19.92 netmask 255.255.255.0 broadcast 172.18.19.255 inet 127.0.0.1 netmask 255.0.0.0 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
[root@localhost ~]# ifconfig eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.18.19.92 netmask 255.255.255.0 broadcast 172.18.19.255 inet6 fe80::20c:29ff:fe3e:a13 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:3e:0a:13 txqueuelen 1000 (Ethernet) RX packets 277761 bytes 323212801 (308.2 MiB) RX errors 0 dropped 3 overruns 0 frame 0 TX packets 107462 bytes 11883689 (11.3 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
标签:
原文地址:http://www.cnblogs.com/Andy-zhaojianjiang/p/5748583.html