linux向其他用户发消息

1.wall向所有登陆用户发消息
example :
wall “hell,who are you”
wall filename

2.write向指定用户的指定终端发送消息
write username ttyname
example:
write root pts/0

3.

echo “Hey Binn. how are you?” > /dev/tty2