write
Write a message on the terminal of a specified logged in user (ctrl-C to stop writing messages). Use thewho
command to find out all terminal_ids of all active users active on the system. See alsomesg
. More information: https://manned.org/write.
-
Send a message to a given user on a given terminal id:
write {{username}} {{terminal_id}}
-
Send message to "testuser" on terminal
/dev/tty/5
:
write {{testuser}} {{tty/5}}
-
Send message to "johndoe" on pseudo terminal
/dev/pts/5
:
write {{johndoe}} {{pts/5}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.