OSDN Git Service

util-linux 2.38: 翻訳予約。
[linuxjm/jm.git] / manual / util-linux / original / man1 / write.1
1 '\" t
2 .\"     Title: write
3 .\"    Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.15
5 .\"      Date: 2022-02-17
6 .\"    Manual: User Commands
7 .\"    Source: util-linux 2.38
8 .\"  Language: English
9 .\"
10 .TH "WRITE" "1" "2022-02-17" "util\-linux 2.38" "User Commands"
11 .ie \n(.g .ds Aq \(aq
12 .el       .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 .  mso www.tmac
22 .  am URL
23 .    ad l
24 .  .
25 .  am MTO
26 .    ad l
27 .  .
28 .  LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 write \- send a message to another user
32 .sp
33 \fBwrite\fP \fIuser\fP [\fIttyname\fP]
34 .SH "DESCRIPTION"
35 .sp
36 \fBwrite\fP allows you to communicate with other users, by copying lines from your terminal to theirs.
37 .sp
38 When you run the \fBwrite\fP command, the user you are writing to gets a message of the form:
39 .sp
40 .if n .RS 4
41 .nf
42 .fam C
43 Message from yourname@yourhost on yourtty at hh:mm ...
44 .fam
45 .fi
46 .if n .RE
47 .sp
48 Any further lines you enter will be copied to the specified user\(cqs terminal. If the other user wants to reply, they must run \fBwrite\fP as well.
49 .sp
50 When you are done, type an end\-of\-file or interrupt character. The other user will see the message \fBEOF\fP indicating that the conversation is over.
51 .sp
52 You can prevent people (other than the superuser) from writing to you with the \fBmesg\fP(1) command. Some commands, for example \fBnroff\fP(1) and \fBpr\fP(1), may automatically disallow writing, so that the output they produce isn\(cqt overwritten.
53 .sp
54 If the user you want to write to is logged in on more than one terminal, you can specify which terminal to write to by giving the terminal name as the second operand to the \fBwrite\fP command. Alternatively, you can let \fBwrite\fP select one of the terminals \- it will pick the one with the shortest idle time. This is so that if the user is logged in at work and also dialed up from home, the message will go to the right place.
55 .sp
56 The traditional protocol for writing to someone is that the string \fI\-o\fP, either at the end of a line or on a line by itself, means that it\(cqs the other person\(cqs turn to talk. The string \fIoo\fP means that the person believes the conversation to be over.
57 .SH "OPTIONS"
58 .sp
59 \fB\-h\fP, \fB\-\-help\fP
60 .RS 4
61 Display help text and exit.
62 .RE
63 .sp
64 \fB\-V\fP, \fB\-\-version\fP
65 .RS 4
66 Print version and exit.
67 .RE
68 .SH "HISTORY"
69 .sp
70 A \fBwrite\fP command appeared in Version 6 AT&T UNIX.
71 .SH "SEE ALSO"
72 .sp
73 \fBmesg\fP(1),
74 \fBtalk\fP(1),
75 \fBwho\fP(1)
76 .SH "REPORTING BUGS"
77 .sp
78 For bug reports, use the issue tracker at \c
79 .URL "https://github.com/util\-linux/util\-linux/issues" "" "."
80 .SH "AVAILABILITY"
81 .sp
82 The \fBwrite\fP command is part of the util\-linux package which can be downloaded from \c
83 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."