O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

write — stdin  stdout  - file  -- opt  --help  --version

Synopsis

write user [tty]

The write program is more primitive than talk: it sends lines of text from one logged-in user to another on the same Linux machine.

$ 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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required