2017-10-25 15:58:18 +02:00
|
|
|
# write
|
|
|
|
|
2025-03-09 03:23:24 +02:00
|
|
|
> Write a message on the terminal of a specified logged in user (`<Ctrl c>` to stop writing messages).
|
2019-05-17 05:31:56 -04:00
|
|
|
> Use the `who` command to find out all terminal_ids of all active users active on the system. See also `mesg`.
|
2025-03-28 16:06:49 +02:00
|
|
|
> More information: <https://manned.org/write.1p>.
|
2017-10-25 15:58:18 +02:00
|
|
|
|
2024-03-14 02:01:06 -03:00
|
|
|
- Send a message to a given user on a given terminal ID:
|
2017-10-25 15:58:18 +02:00
|
|
|
|
|
|
|
`write {{username}} {{terminal_id}}`
|
|
|
|
|
2021-01-31 14:05:18 -03:00
|
|
|
- Send message to "testuser" on terminal `/dev/tty/5`:
|
2017-10-25 15:58:18 +02:00
|
|
|
|
|
|
|
`write {{testuser}} {{tty/5}}`
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
- Send message to "johndoe" on pseudo terminal `/dev/pts/5`:
|
2017-10-25 15:58:18 +02:00
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
`write {{johndoe}} {{pts/5}}`
|