2017-10-25 14:58:18 +01:00
|
|
|
# write
|
|
|
|
|
2017-10-26 09:29:50 +01:00
|
|
|
> Write a message on the terminal of a specified logged in user (ctrl-C to stop writing messages).
|
2019-05-17 10:31:56 +01:00
|
|
|
> Use the `who` command to find out all terminal_ids of all active users active on the system. See also `mesg`.
|
2017-10-25 14:58:18 +01:00
|
|
|
|
2017-10-26 17:09:43 +01:00
|
|
|
- Send a message to a given user on a given terminal id:
|
2017-10-25 14:58:18 +01:00
|
|
|
|
|
|
|
`write {{username}} {{terminal_id}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Send message to "testuser" on terminal `/dev/tty/5`:
|
2017-10-25 14:58:18 +01:00
|
|
|
|
|
|
|
`write {{testuser}} {{tty/5}}`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Send message to "johndoe" on pseudo terminal `/dev/pts/5`:
|
2017-10-25 14:58:18 +01:00
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
`write {{johndoe}} {{pts/5}}`
|