tldr/pages.zh/common/write.md

18 lines
513 B
Markdown
Raw Normal View History

2019-08-16 03:08:37 +01:00
# write
> 向某个终端上的特定用户的屏幕写入信息Ctrl-C 来停止写入)。
2019-10-18 03:33:27 +01:00
> 使用 `who` 命令来获取所有活动用户的终端 id. 参见 `mesg`.
> 更多信息:<https://manned.org/write>.
2019-08-16 03:08:37 +01:00
- 向指定的终端 ID 上的指定用户写入信息:
2019-08-16 03:08:37 +01:00
`write {{username}} {{terminal_id}}`
- 向终端 "/dev/tty/5" 上的用户 "testuser" 发送信息:
2019-08-16 03:08:37 +01:00
`write {{testuser}} {{tty/5}}`
2022-03-27 06:25:15 +01:00
- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息:
2019-08-16 03:08:37 +01:00
`write {{johndoe}} {{pts/5}}`