Write (Unix)

This MedLibrary.org supplementary page on Write (Unix) is provided directly from the open source Wikipedia as a service to our readers. Please see the note below on authorship of this content, as well as the Wikipedia usage guidelines. To search for other content from our encyclopedia supplement, please use the form below:

write can refer to several Unix commands. All known variations of write are used to write messages to another user. The most popular variation sends a message directly to another user's TTY

Contents

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 of write writes a message to a user on a Windows 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.

See also

Wikipedia content modification information:

  • This page was last modified on 13 November 2008, at 15:19.

Wikipedia Authorship and Review

Wikipedia content provided here is not reviewed directly by MedLibrary.org. Wikipedia content is authored by an open community of volunteers and is not produced by or in any way affiliated with MedLibrary.org.

Wikipedia Usage Guidelines

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article on "Write (Unix)".

The URL for this specific entry is:

All Wikipedia text is available under the terms of the GNU Free Documentation License. (See Copyrights for details). Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc.