other versions
- wheezy 1.5.3-5+deb7u6
- jessie 1.7.5-11+deb8u1
- jessie-backports 2.2.1-8~bpo8+1
- testing 2.2.1-8
- unstable 2.2.1-8
- experimental 2.2.3-1
other sections
conflicting packages
lp(1) | Apple Inc. | lp(1) |
NAME¶
lp - print filesSYNOPSIS¶
lp [ -E ] [ -U username ] [ -c ] [ -d destination[/instance] ] [ -h hostname[:port] ] [ -m ] [ -n num-copies ] [ -o option[=value] ] [ -q priority ] [ -s ] [ -t title ] [ -H handling ] [ -P page-list ] [ -- ] [ file(s) ]DESCRIPTION¶
lp submits files for printing or alters a pending job. Use a filename of "-" to force printing from the standard input.THE DEFAULT DESTINATION¶
CUPS provides many ways to set the default destination. The "LPDEST" and "PRINTER" environment variables are consulted first. If neither are set, the current default set using the lpoptions(1) command is used, followed by the default set using the lpadmin(8) command.OPTIONS¶
The following options are recognized by lp:- --
-
- -E
-
- -U username
-
- -c
-
- -d destination
-
- -h hostname[:port]
-
- -i job-id
-
- -m
-
- -n copies
-
- -o "name=value [name=value ...]"
-
- -q priority
-
- -s
-
- -t "name"
-
- -H hh:mm
- -H hold
- -H immediate
- -H restart
- -H resume
-
- -P page-list
-
COMMON JOB OPTIONS¶
Aside from the printer-specific options reported by the lpoptions(1) command, the following generic options are available:- -o media=size
-
- -o landscape
- -o orientation-requested=4
-
- -o sides=one-sided
- -o sides=two-sided-long-edge
- -o sides=two-sided-short-edge
-
- -o fitplot
-
- -o number-up=2
- -o number-up=4
- -o number-up=6
- -o number-up=9
- -o number-up=16
-
- -o scaling=number
-
- -o cpi=N
-
- -o lpi=N
-
- -o page-bottom=N
- -o page-left=N
- -o page-right=N
- -o page-top=N
-
EXAMPLES¶
Print a double-sided legal document to a printer called "foo":lp -d foo -o media=legal -o sides=two-sided-long-edge filenamePrint an image across 4 pages:
lp -d bar -o scaling=200 filenamePrint a text file with 12 characters per inch, 8 lines per inch, and a 1 inch left margin:
lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename
COMPATIBILITY¶
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive. The "q" option accepts a different range of values than the Solaris lp command, matching the IPP job priority values (1-100, 100 is highest priority) instead of the Solaris values (0-39, 0 is highest priority).SEE ALSO¶
cancel(1), lpadmin(8), lpmove(8), lpoptions(1), lpstat(1),COPYRIGHT¶
Copyright 2007-2011 by Apple Inc.CUPS | 3 October 2011 |