You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
925 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

write
===
向指定登录用户终端上发送信息
## 说明
**write命令** 用于向指定登录用户终端上发送信息。通过write命令可传递信息给另一位登入系统的用户当输入完毕后键入EOF表示信息结束write命令就会将信息传给对方。如果接收信息的用户不只登入本地主机一次你可以指定接收信息的终端机编号
## 选项
```
write(参数)
```
### 参数
```
用户:指定要接受信息的登录用户
登陆终端:指定接收信息的用户的登录终端
```
## 实例
传信息给Rollaend此时Rollaend只有一个连线 : 
```
write Rollaend
```
接下来就是将信息打上去结束请Ctrl+C
传信息给Rollaend、Rollaend的连线有pts/2、pts/3
```
write Rollaend pts/2
```
接下来就是将信息打上去结束请Ctrl+C
若对方设定`mesg n`,则此时信息将无法传给对方