Name
lp
Synopsis
lp [options] [files]
Sends
files to the printer. With no arguments,
prints standard input. Part of the Common Unix Printing System
(CUPS).
Options
-
-c Copy
filesto print spooler; if changes are made tofilewhile it is still queued for printing, the printout is unaffected. This option has no effect when used with a CUPS server, which performs in a similar manner already.-
-ddest Send output to destination printer named
dest.-
-E Force an encrypted connection if supported by the print server.
-
-hhost Send print job to the print server
host,localhostby default.-
-Haction Print according to the named
action:hold(notify before printing),resume(resume a held request),immediate(print next; privileged users only).-
-iIDs Override
lpoptions used for requestIDscurrently in the queue; specify newlpoptions after-i. For example, change the number of copies sent.-
-m Send mail after files are printed (not supported in CUPS as of Version 1.1.15).
-
-nnumber Specify the
numberof copies to print.-
-ooptions Set one or more printer options. CUPS documentation describing these options is included with Mac OS X and viewable via a web browser using
http://127.0.0.1:631/sum. html#STANDARD_OPTIONS.-
-Plist Print only the page numbers specified in
list.-
-qn Print request with priority level
n, increasing from 1 to 100. The default is 50.-
-s Suppress messages.
-
-ttitle Use
titlefor the print job name.-
-uusername Cancel jobs belonging to
username.
Example
Print five copies of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access