Linux write命令

Linux 教程 · 2019-02-16 08:28:05

Linux write命令用于传讯息给其他使用者。

使用权限:所有使用者。

语法

write user [ttyname]

参数说明

  • user : 预备传讯息的使用者帐号
  • ttyname : 如果使用者同时有两个以上的 tty 连线,可以自行选择合适的 tty 传讯息

实例

传讯息给 Rollaend,此时 Rollaend 只有一个连线

write Rollaend

接下来就是将讯息打上去,结束请按 ctrl+c

传讯息给 Rollaend,Rollaend 的连线有 pts/2,pts/3

write Rollaend pts/2

接下来就是将讯息打上去,结束请按 ctrl+c

注意:若对方设定 mesg n,则此时讯席将无法传给对方。

点击查看所有 Linux 教程 文章: https://www.codercto.com/courses/l/14.html

查看所有标签

The Art of Computer Programming, Volume 3

The Art of Computer Programming, Volume 3

Donald E. Knuth / Addison-Wesley Professional / 1998-05-04 / USD 74.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 3》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具