1. 确定可通信的用户
$ who -uH
NAME LINE TIME IDLE PID COMMENT
sbt11 pts/1 2014-08-31 16:38 old 30940 (10.12.7.10)
bj123 pts/2 2014-09-02 10:46 . 28226 (10.12.7.10)
2. 通信
$ write sbt11 pts/1
若提示:write: you have write permission turned off
你需打开自己的通信权限,终端下输入
$ mesg y
再输入
$ write sbt11 pts/1
就可以直接通信了
若提示:write: sbt11 has messages disabled on pts/1
需要对方(sbt11)开启通信权限
对方需要在自己的终端下输入 $ mesg y
然后你们才可以通信