Unix Printing
Use lpr or mpage at the command line to print postscript (.ps) and text
files. Neither lpr nor mpage will print PDFs, .doc files, or
other application documents correctly. In most cases, garbled
code will be printed instead of the text or pictures intended. Use the
application which created the document to print a postscript file
before printing.
"mpage" will allow you to print multiple pages on each sheet
of paper and provides additional formatting options. It defaults to 4
pages/sheet. More mpage formatting options can be found by typing
"man mpage" at the command line. Note that several options for
mpage (including -P) do not permit a space between the option and its
argument.
Usage:
lpr -P <printer name> <filename>
mpage -<# pages/sheet> -P<printer name> <filename>
Examples:
lpr -P printer1 myDoc.ps
mpage -2 -Pprinter1 csciNotes.ps
Black and White
Black and white printers print duplex (double-sided) by default.
In most cases, to print simplex (single-sided) pages you need to append
'-simplex' to the end of the printer name.
Usage:
lpr -P <printer name>-simplex <filename>
mpage -<# pages/sheet> -P<printer name>-simplex <filename>
Example:
lpr -P printer1-simplex myDoc.ps
mpage -4 -Pprinter1-simplex csciNotes.ps
Color
Color printers print simplex (single-sided) by default. To print
duplex (double-sided) append '-duplex' to the end of
the printer name.
Example:
lpr -P <printer name>-duplex <filename>
lpq -P <printer name>
This will produce output that similar to the following:
Printer: cs4204 is cs4250@lighthouse.itlabs.umn.edu
Pharos LPD Server
-----------------
Printer: cs4250
Owner Status Job Name Job No Pages Size Priority
------------------------------------------------------------------
username Waiting test.txt 140 0 41 1
Find the Job Number. (In this example, it is
140.)
lprm -P <printer name> <Job Number>
|