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. 展示,描述,陈述,介绍,赠送