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

23 lines
1.1 KiB
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="lpr">lpr</h1>
<p>将文件发送给指定打印机进行打印</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>lpr命令</strong> 用于将文件发送给指定打印机进行打印,如果不指定目标打印机,则使用默认打印机。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">lpr(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-E与打印服务器连接时强制使用加密
-H指定可选的打印服务器
-C指定打印任务的名称
-P指定接受打印任务的目标打印机
-U指定可选的用户名
-#:指定打印的份数;
-h关闭banner打印
-m打印完成后发送E-mail
-r打印完成后删除文件。</code></pre>
<h3 id="参数">参数</h3>
<p>文件:需打印的文件。</p>
<h3 id="实例">实例</h3>
<p>将man1和man2送到打印机lp进行打印</p>
<pre><code class="language-bash">lpr -P lp man1 man2</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->