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

22 lines
767 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="yes">yes</h1>
<p>重复打印指定字符串</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>yes命令</strong> 在命令行中输出指定的字符串直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">yes(参数)</code></pre>
<h3 id="参数">参数</h3>
<p>字符串:指定要重复打印的字符串。</p>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">[root@localhost ~]# yes testline
testline
testline
testline
testline
testline
testline
testline
testline
...一直重复打印 testline按Ctrl+C结束。</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->