mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com> Co-authored-by: Seth Falco <seth@falco.fun> Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
16 lines
462 B
Markdown
16 lines
462 B
Markdown
# write
|
|
|
|
> 向某个终端上的特定用户的屏幕写入信息 (Ctrl-C 来停止写入).
|
|
> 使用 `who` 命令来获取所有活动用户的终端 id. 参见 `mesg`.
|
|
|
|
- 向指定的终端 ID 上的指定用户写入信息:
|
|
|
|
`write {{username}} {{terminal_id}}`
|
|
|
|
- 向终端 "/dev/tty/5" 上的用户 "testuser" 发送信息:
|
|
|
|
`write {{testuser}} {{tty/5}}`
|
|
|
|
- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息 :
|
|
|
|
`write {{johndoe}} {{pts/5}}`
|