标签:
1、命令名称:write
执行权限:所有用户 功能描述:向另外一个用户发送信息,以CTRL+D作为结束
语法:write <用户名>
root向luxh用户发送信息
[root@localhost ~]# write luxh
write: luxh is logged in more than once; writing to pts/1
hello,luxh,i am root
用户luxh接收到的信息为
[luxh@localhost ~]$
Message from luxh@localhost.localdomain (as root) on pts/0 at 05:17 ...
hello,luxh,i am root
root用户向luxh用户发送信息,luxh用户必须已经登陆(即远程连接上去,我试过su - user不行),否则是发送不了的。
2、命令名称:wall
执行权限:所有用户 功能描述:向所有用户广播信息
语法:wall [message] [文件名]
root向所有登陆用户发送信息
[root@localhost ~]# wall Happy New Year
Broadcast message from root@localhost.localdomain (pts/0) (Thu Nov 22 05:27:49 2012):
Happy New Year
已登陆的用户就可以收到
[luxh@localhost ~]$
Broadcast message from root@localhost.localdomain (pts/0) (Thu Nov 22 05:27:49 2012):
Happy New Year
标签:
原文地址:http://www.cnblogs.com/itcomputer/p/5057740.html