语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -5,14 +5,14 @@
<p>!</p>
<p>存在缓存机制每1024个字节将输出一次。若从管道接收输入数据应该是缓冲区满才将数据转存到指定的文件中。若文件内容不到1024个字节则接收完从标准输入设备读入的数据后将刷新一次缓冲区并转存数据到指定文件。</p>
<h3 id="语法">语法</h3>
<pre><code>tee(选项)(参数)</code></pre>
<pre><code class="language-bash">tee(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code>-a向文件中重定向时使用追加模式
<pre><code class="language-bash">-a向文件中重定向时使用追加模式
-i忽略中断interrupt信号。</code></pre>
<h3 id="参数">参数</h3>
<p>文件:指定输出重定向的文件。</p>
<p>在终端打印stdout同时重定向到文件中</p>
<pre><code>ls | tee out.txt
<pre><code class="language-bash">ls | tee out.txt
1.sh
1.txt
2.txt
@@ -24,7 +24,7 @@ string2
www.pdf
WWW.pdf
WWW.pef</code></pre>
<pre><code>[root@localhost text]# ls | tee out.txt | cat -n
<pre><code class="language-bash">[root@localhost text]# ls | tee out.txt | cat -n
1 1.sh
2 1.txt
3 2.txt