Write (Unix)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description Script error: No such module "about". Script error: No such module "Unsubst". Template:Lowercase Script error: No such module "Infobox".Template:Template other Script error: No such module "Check for unknown parameters".Script error: No such module "Check for conflicting parameters". In Unix and Unix-like operating systems, Template:Mono is a utility used to send messages to another user by writing a message directly to another user's TTY.[1]

History

The write command was included in the First Edition of the Research Unix operating system.[2] A similar command appeared in Compatible Time-Sharing System.[3]

Sample usage

The 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.[4]

A conversation initiated between two users on the same machine:

$ write root pts/7
test

Will show up to the user on that console as:

Message from root@wiki on pts/8 at 11:19 ...
test

See also

Template:Sister project

References

<templatestyles src="Reflist/styles.css" />

  1. [[[:Template:Man/v7]] write(Template:Man/v7)] – Template:Man/v7
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. write(1) – util-linux man page

Script error: No such module "Check for unknown parameters".

Script error: No such module "Navbox".