2019-04-21 11:50:48 +08:00

19 lines
1.3 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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="write">write</h1>
<p>向指定登录用户终端上发送信息</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>write命令</strong> 用于向指定登录用户终端上发送信息。通过write命令可传递信息给另一位登入系统的用户当输入完毕后键入EOF表示信息结束write命令就会将信息传给对方。如果接收信息的用户不只登入本地主机一次你可以指定接收信息的终端机编号。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">write(参数)</code></pre>
<h3 id="参数">参数</h3>
<pre><code class="language-bash">用户:指定要接受信息的登录用户;
登陆终端:指定接收信息的用户的登录终端。</code></pre>
<h3 id="实例">实例</h3>
<p>传信息给Rollaend此时Rollaend只有一个连线 : </p>
<pre><code class="language-bash">write Rollaend</code></pre>
<p>接下来就是将信息打上去结束请Ctrl+C</p>
<p>传信息给Rollaend、Rollaend的连线有pts/2、pts/3</p>
<pre><code class="language-bash">write Rollaend pts/2</code></pre>
<p>接下来就是将信息打上去结束请Ctrl+C</p>
<p>若对方设定<code>mesg n</code>,则此时信息将无法传给对方。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->