Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

write (Unix)

From Wikipedia, the free encyclopedia
Unix command to send messages to another user by writing directly to their terminal
This article is about the Unix command. For the system call, seewrite (system call).
icon
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 authorsDennis Ritchie,
Ken Thompson
DeveloperAT&T Bell Laboratories
Initial releaseNovember 3, 1971; 54 years ago (1971-11-03)
Operating systemUnix andUnix-like
PlatformCross-platform
TypeCommand

InUnix andUnix-like operating systems,write is autility used tosend messages to another user by writing a message directly to another user'sTTY.[1]

History

[edit]

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

Sample usage

[edit]

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

See also

[edit]
The WikibookGuide to Unix has a page on the topic of:Commands

References

[edit]
  1. ^write(1) – Version 7 Unix Programmer'sManual
  2. ^Unix Programmer's Manual(PDF) (1st ed.). Bell Labs. 3 November 1971. p. write(1). Archived fromthe original(PDF) on 9 July 2016. Retrieved9 July 2016.
  3. ^Fetter, Mirko (2019).New Concepts for Presence and Availability in Ubiquitous and Mobile Computing.University of Bamberg Press. p. 38.ISBN 9783863096236.The basic concept of sending instantaneously messages to logged in users came with ... CTSS ...
  4. ^"write(1) – util-linux man page".Archived from the original on 2025-12-03. Retrieved2026-02-03.
File system
Processes
User environment
Text processing
Shell builtins
Searching
Documentation
Software development
Miscellaneous
Retrieved from "https://en.wikipedia.org/w/index.php?title=Write_(Unix)&oldid=1336331872"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp