mesg命令用于设置当前终端的写入权限,即是否让其他用户向本终端发信息。将mesg设置y时,其他用户可利用write命令将信息直接显示在您的屏幕上。
语法格式: mesg [参数]
常用参数:
n | 不允许其他用户将信息直接显示在你的屏幕上 |
y | 允许其他用户将信息直接显示在你的屏幕上 |
参考实例
允许其他用户发信息到当前终端:
[[email protected] ~]# mesg y
不允许其他用户发信息到当前终端:
[[email protected] ~]# mesg n
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
mesg命令用于设置当前终端的写入权限,即是否让其他用户向本终端发信息。将mesg设置y时,其他用户可利用write命令将信息直接显示在您的屏幕上。
语法格式: mesg [参数]
常用参数:
n | 不允许其他用户将信息直接显示在你的屏幕上 |
y | 允许其他用户将信息直接显示在你的屏幕上 |
参考实例
允许其他用户发信息到当前终端:
[[email protected] ~]# mesg y
不允许其他用户发信息到当前终端:
[[email protected] ~]# mesg n