Linux mesg命令

更新时间: 2019-10-16 12:40

Linux mesg命令用于设置终端机的写入权限。

将mesg设置y时,其他用户可利用write指令将信息直接显示在您的屏幕上。

语法

mesg [ny]

参数:

  • n 不允许其他用户将信息直接显示在你的屏幕上。
  • y 允许其他用户将信息直接显示在你的屏幕上。

实例

允许其他用户发信息到当前终端。

root 的终端

# mesg y //在这个终端设置允许发送消息

其他普通用户的终端:

$ write root pts/4 
hello
hello
EOF //Ctrl+D 结束输入

root 的终端 终端显示

# 
Message from root@ w3cschool.cc (as hnlinux) on pts/5 at 14:48 ...
hello
EOF
How Great Decisions Get Made

How Great Decisions Get Made

Maruska, Don / 2006-2 / $ 20.28

All too often, solving tough work issues can become a tug of war as clashing departments, priorities, personality styles, and other concerns threaten to destroy any possibility of a successful conclus......一起来看看 《How Great Decisions Get Made》 这本书的介绍吧!

SHA 加密

SHA 加密

SHA 加密工具

XML 在线格式化

XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器

Markdown 在线编辑器

Markdown 在线编辑器