write | |
Author: | Dennis Ritchie, Ken Thompson |
Developer: | AT&T Bell Laboratories |
Operating System: | Unix and Unix-like |
Platform: | Cross-platform |
Genre: | Command |
In Unix and Unix-like operating systems, is a utility used to send messages to another user by writing a message directly to another user's TTY.
The write command was included in the First Edition of the Research Unix operating system.[1] A similar command appeared in Compatible Time-Sharing System.[2]
The syntax for the write command is:
The write session is terminated by sending EOF, which can be done by pressing Ctrl+D. The tty argument is only necessary when a user is logged into more than one terminal.[3]
A conversation initiated between two users on the same machine:
Will show up to the user on that console as: