Chinaunix首页 | 论坛 | 博客
  • 博客访问: 204858
  • 博文数量: 28
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 386
  • 用 户 组: 普通用户
  • 注册时间: 2014-09-09 14:15
文章分类

全部博文(28)

文章存档

2015年(12)

2014年(16)

分类: LINUX

2015-05-16 22:47:01

WRITE(1)                   Linux Programmer’s Manual                  WRITE(1)


NAME
       write - send a message to another user
       //写--发送一个信息给其他用户


SYNOPSIS
       write user [ttyname]


DESCRIPTION
//描述
       Write allows you to communicate with other users, by copying lines from your terminal to theirs.
       //write函数允许和其他用户进行交流可以从你的终端上被其他用户一系列的复制。


       When you run the write command, the user you are writing to gets a message of the form:
       //当你运行写的指令时,你写信给用户获取信息的形式:


       Message from yourname@yourhost on yourtty at hh:mm ...


       Any  further  lines  you enter will be copied to the specified user’s terminal.  If the other user wants to reply, they must run write as well.
       //任何进一步的线路都会被复制到指定的用户终端。如果其他用户想要回复,他们也必须执行写的命令。


       When you are done, type an end-of-file or interrupt character.  The other user will see the message EOF indicating that the  conversation  is over.
        //当你完成文件结束类型或中断字符。当其他用户可以看见文件类型的信息时就标志会话结束。


       You can prevent people (other than the super-user) from writing to you with the mesg(1) command.  Some commands, for example nroff(1) and  pr(1), may disallow writing automatically, so that your output isn’t overwritte.
        //除了超级用户你可以阻止任何用户改写你的信息命令。例如格式化(1)和公关(1)会自动拒绝写入,所以你的输出信息不回被覆盖。


       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  specifying  the terminal  name  as  the second operand to the write command.  Alternatively, you can let write 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.
       //如果用户想写入的已经在多个终端登陆,你可以指定哪个终端写入哪个终端作为第二个对象写入。或者,你可以让写的命令利用空闲               // 最短时间选择一个终端。这就导致一个用户如果登陆并且拨号成功,那么信息就会去一个正确的地方。

       The  traditional  protocol for writing to someone is that the string ‘-o’, either at the end of a line or on a line by itself, means that it’s the other person’s turn to talk.  The string ‘oo’ means that the person believes the conversation to be over.
       //给某人写字符串'-0'是传统的协议,如果一行的末尾或中间有这个字符串,意味着换为其他用户说话。字符串“00‘意味着用户以为会话                //已经结束。


SEE ALSO
       mesg(1), talk(1), who(1)


HISTORY
       A write command appeared in Version 6 AT&T UNIX.
        //写的命令出现在 Version 6 AT&T UNIX.中

AVAILABILITY
       The write command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
        //写命令是util-linux-ng包中的一部分,它还可以从文件传输协议中被利用://ftp.kernel.org/pub/linux/utils/util-linux-ng/.


                                 12 March 1995                        WRITE(1)
(END) 
阅读(4306) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~