1、write命令
#write user [ttyname]
示例:
[root@Yunzong-made-114 service]# w
10:40:43 up 54 days, 21:39, 2 users, load average: 0.02, 0.01, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 10.9.22.130 09:45 0.00s 0.08s 0.01s w
root pts/1 10.9.22.122 10:39 1:26 0.03s 0.03s -bash
[root@Yunzong-made-114 service]# write root pts/1
sss
2、wall命令
#wall message
示例:
[root@Yunzong-made-114 service]# wall hello
Broadcast message from root@Yunzong-made-114 (pts/0) (Tue Feb 23 10:42:29 2016):
hello
#write user [ttyname]
示例:
[root@Yunzong-made-114 service]# w
10:40:43 up 54 days, 21:39, 2 users, load average: 0.02, 0.01, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 10.9.22.130 09:45 0.00s 0.08s 0.01s w
root pts/1 10.9.22.122 10:39 1:26 0.03s 0.03s -bash
[root@Yunzong-made-114 service]# write root pts/1
sss
2、wall命令
#wall message
示例:
[root@Yunzong-made-114 service]# wall hello
Broadcast message from root@Yunzong-made-114 (pts/0) (Tue Feb 23 10:42:29 2016):
hello