- Write (Unix)
write
can refer to severalUnix commands. All known variations ofwrite
are used to write messages to another user. The most popular variation sends a message directly to another user'sTTY Usage
The correct syntax for the
write
command is:write "user" ["tty"] "message"
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.
Example
A conversation initiated between two users on the same machine:
11:19 AM# write root pts/7 test
Will show up to the user on that console as:
Message from root@punch on pts/8 at 11:19 ... test
History
A version of the write command appeared in the First Edition of the
Research Unix operating system. Another variation ofwrite
writes a message to a user on aWindows network , using the SMB packet format.Programmer's Workbench UNIX contained a program wall that wrote a message to all users in the same way.ee also
*
List of Unix programs
*talk commandExternal links
*man|1|write|Linux|send a message to another user
Wikimedia Foundation. 2010.