[root@localhost 桌面]# write jiangyi
write: jiangyi is logged in more than once; writing to pts/0
this is a mesage
[root@localhost 桌面]# wall "this message send everyone"
[root@localhost 桌面]#
Broadcast message from [email protected] (pts/1) (Sun Nov 30 16:33:26 2014):
this message send everyone
exit
[jiangyi@localhost 桌面]$ ^C
[jiangyi@localhost 桌面]$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.778 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.063 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.066 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.067 ms
^C
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3377ms
rtt min/avg/max/mdev = 0.063/0.243/0.778/0.308 ms
[jiangyi@localhost 桌面]$ ping -c 3 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.209 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.070 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.066 ms
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.066/0.115/0.209/0.066 ms
[jiangyi@localhost 桌面]$
[jiangyi@localhost 桌面]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E5:CE:ED
inet6 addr: fe80::20c:29ff:fee5:ceed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9437 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:880298 (859.6 KiB) TX bytes:2808 (2.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1762 (1.7 KiB) TX bytes:1762 (1.7 KiB)
[jiangyi@localhost 桌面]$ #eth0 是真实网卡 lo是回环地址
[root@localhost 桌面]# last
jiangyi pts/1 :0.0 Sun Nov 30 16:32 still logged in
jiangyi pts/0 :0.0 Sun Nov 30 16:29 still logged in
jiangyi pts/0 :0.0 Fri Sep 26 10:12 - 10:24 (00:12)
jiangyi pts/0 :0.0 Tue Sep 23 17:02 - 17:35 (00:33)
jiangyi pts/0 :0.0 Sat Sep 20 11:17 - 11:40 (00:23)
jiangyi pts/0 :0.0 Fri Sep 19 20:40 - 21:17 (00:36)
jiangyi tty1 :0 Thu Sep 18 14:03 still logged in
reboot system boot 2.6.32-358.el6.x Thu Sep 18 14:03 - 16:44 (73+02:40)
jiangyi pts/0 :1.0 Thu Sep 18 14:01 - down (00:00)
jiangyi pts/1 :1.0 Thu Sep 18 13:57 - 13:58 (00:00)
jiangyi pts/0 :1.0 Thu Sep 18 13:29 - 14:01 (00:31)
jiangyi tty7 :1 Thu Sep 18 13:28 - down (00:33)
root tty1 :0 Thu Sep 18 13:27 - 13:59 (00:32)
reboot system boot 2.6.32-358.el6.x Thu Sep 18 13:26 - 14:01 (00:35)
jiangyi pts/1 :0.0 Wed Sep 17 17:33 - 17:33 (00:00)
jiangyi pts/0 :0.0 Sun Sep 14 20:46 - down (3+16:36)
jiangyi pts/0 :0.0 Sat Sep 13 11:56 - 11:59 (00:02)
jiangyi tty1 :0 Sat Sep 13 11:55 - down (5+01:27)
reboot system boot 2.6.32-358.el6.x Sat Sep 13 11:55 - 13:23 (5+01:27)
jiangyi pts/0 :0.0 Fri Sep 12 11:21 - 11:26 (00:05)
jiangyi pts/0 :0.0 Fri Sep 12 11:15 - 11:21 (00:05)
jiangyi tty1 :0 Fri Sep 12 11:13 - down (00:19)
reboot system boot 2.6.32-358.el6.x Fri Sep 12 11:12 - 11:32 (00:19)
jiangyi pts/0 :0.0 Fri Sep 12 18:59 - 11:10 (-7:-48)
jiangyi pts/0 :0.0 Fri Sep 12 18:58 - 18:58 (00:00)
jiangyi tty1 :0 Fri Sep 12 18:58 - down (-7:-46)
reboot system boot 2.6.32-358.el6.x Fri Sep 12 18:57 - 11:11 (-7:-46)
jiangyi pts/0 :0.0 Fri Sep 12 18:51 - crash (00:05)
jiangyi tty1 :0 Fri Sep 12 18:50 - crash (00:06)
reboot system boot 2.6.32-358.el6.x Fri Sep 12 18:50 - 11:11 (-7:-38)
jiangyi pts/0 :0.0 Fri Sep 12 18:48 - down (00:00)
jiangyi pts/0 :0.0 Fri Sep 12 18:47 - 18:48 (00:01)
jiangyi pts/0 :0.0 Fri Sep 12 18:46 - 18:46 (00:00)
jiangyi tty1 :0 Fri Sep 12 18:42 - down (00:06)
reboot system boot 2.6.32-358.el6.x Fri Sep 12 18:39 - 18:48 (00:09)
wtmp begins Fri Sep 12 18:39:00 2014
[root@localhost 桌面]# lastlog
用户名 端口 来自 最后登陆时间
root **从未登录过**
bin **从未登录过**
daemon **从未登录过**
adm **从未登录过**
lp **从未登录过**
sync **从未登录过**
shutdown **从未登录过**
halt **从未登录过**
mail **从未登录过**
uucp **从未登录过**
operator **从未登录过**
games **从未登录过**
gopher **从未登录过**
ftp **从未登录过**
nobody **从未登录过**
dbus **从未登录过**
usbmuxd **从未登录过**
vcsa **从未登录过**
rpc **从未登录过**
rtkit **从未登录过**
avahi-autoipd **从未登录过**
abrt **从未登录过**
rpcuser **从未登录过**
nfsnobody **从未登录过**
haldaemon **从未登录过**
gdm **从未登录过**
ntp **从未登录过**
apache **从未登录过**
saslauth **从未登录过**
postfix **从未登录过**
pulse **从未登录过**
sshd **从未登录过**
tcpdump **从未登录过**
jiangyi **从未登录过**
[root@localhost 桌面]#
[root@localhost 桌面]# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
[root@localhost 桌面]# netstat -u
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
[root@localhost 桌面]# netstat -l
[root@localhost 桌面]# netstat -tlun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:48726 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:631 :::* LISTEN
tcp 0 0 ::1:25 :::* LISTEN
tcp 0 0 :::47579 :::* LISTEN
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 0.0.0.0:652 0.0.0.0:*
udp 0 0 0.0.0.0:604 0.0.0.0:*
udp 0 0 0.0.0.0:56798 0.0.0.0:*
udp 0 0 :::111 :::*
udp 0 0 fe80::20c:29ff:fee5:ceed:123 :::*
udp 0 0 ::1:123 :::*
udp 0 0 :::123 :::*
udp 0 0 :::51646 :::*
udp 0 0 :::604 :::*
[root@localhost 桌面]#
readHat系列专有