This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources. Find sources: "Write" Unix – news ·newspapers ·books ·scholar ·JSTOR(August 2016) (Learn how and when to remove this message) |
| write | |
|---|---|
| Original authors | Dennis Ritchie, Ken Thompson |
| Developer | AT&T Bell Laboratories |
| Initial release | November 3, 1971; 54 years ago (1971-11-03) |
| Operating system | Unix andUnix-like |
| Platform | Cross-platform |
| Type | Command |
InUnix andUnix-like operating systems,write is autility used tosend messages to another user by writing a message directly to another user'sTTY.[1]
The write command was included in the First Edition of theResearch Unix operating system.[2] A similar command appeared inCompatible Time-Sharing System.[3]
The syntax for the write command is:
$writeuser[tty]message
The write session is terminated by sendingEOF, which can be done by pressing Ctrl+D. Thetty argument is only necessary when a user is logged into more than one terminal.[4]
A conversation initiated between two users on the same machine:
$writerootpts/7test
Will show up to the user on that console as:
Message from root@wiki on pts/8 at 11:19 ...test
write(1) – Version 7 Unix Programmer'sManualThe basic concept of sending instantaneously messages to logged in users came with ... CTSS ...