Name
write — stdin stdout - file -- opt --help --version
Synopsis
writeuser
[tty
]
The write
program is more primitive than talk
: it sends lines of text from one logged-in user to
another on the same Mac. It cannot communicate over a network:
➜ write smith
Hi, how are you?
See you later.
^D
^D
ends the connection.
write
is also useful in pipelines
for quick one-off messages:
➜ echo 'Howdy!' | write smith
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.