13 lines
871 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="mesg">mesg</h1>
<p>设置当前终端的写权限</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>mesg命令</strong> 用于设置当前终端的写权限即是否让其他用户向本终端发信息。将mesg设置y时其他用户可利用write命令将信息直接显示在您的屏幕上。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">mesg(参数)</code></pre>
<h3 id="参数">参数</h3>
<p>y/ny表示运行向当前终端写信息n表示禁止向当前终端写信息。</p>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">[root@localhost ~]# mesg y #允许系统用户将信息直接显示在你的屏幕上。
[root@localhost ~]# mesg n #不允许系统用户将信息直接显示在你的屏幕上。</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->