lpr

lpr

lpr - print files

1. SYNOPSIS

lpr [ -E ] [ -H server[:port] ] [ -U username ] [ -P destination[/instance] ] [ -# num-copies [ -h ] [ -l ] [ -m ] [ -o option[=value] ] [ -p ] [ -q ] [ -r ] [ -C title ] [ -J title ] [ -T title ] [ file(s) ]

2. DESCRIPTION

lpr submits files for printing. Files named on the command line are sent to the named printer or the default destination if no destination is specified. If no files are listed on the command-line, lpr reads the print file from the standard input.
lpr 提交要打印的文件。如果未指定目的地,则在命令行上命名的文件将发送到指定的打印机或默认目的地。如果命令行中未列出任何文件,lpr 将从标准输入中读取打印文件。

3. OPTIONS

The following options are recognized by lpr:

-E
Forces encryption when connecting to the server.
连接到服务器时强制加密。

-H server[:port]
Specifies an alternate server.
指定备用服务器。

-C "name"

-J "name"

-T "name"
Sets the job name/title.

-P destination[/instance]
Prints files to the named printer.
将文件打印到指定的打印机。

-U username
Specifies an alternate username.

-# copies
Sets the number of copies to print.
设置要打印的份数。

-h
Disables banner printing. This option is equivalent to -o job-sheets=none.

-l
Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to -o raw.

-m
Send an email on job completion.

-o option[=value]
Sets a job option.

-p
Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to -o prettyprint and is only useful when printing text files.
指定应使用带有日期、时间、作业名称和页码的阴影标题格式化打印文件。

-q
Hold job for printing.

-r
Specifies that the named print files should be deleted after submitting them.

4. EXAMPLES

Print two copies of a document to the default printer:

lpr -# 2 filename

Print a double-sided legal document to a printer called “foo” (将双面法律文档打印到名为 foo 的打印机) :

lpr -P foo -o media=legal -o sides=two-sided-long-edge filename

Print a presentation document 2-up to a printer called “foo”:

lpr -P foo -o number-up=2 filename
presentation [prez(ə)n'teɪʃ(ə)n]:n. 展示,描述,陈述,介绍,赠送
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值