Gold University of Minnesota M. Skip to main content.University of Minnesota. Home page.
 
 

What's inside.

Account Management

E-mail

Hardware and Media

Network and Wireless

Offsite Access

Printing

Processes

Security and Passwords

Software and Tools

Systems Staff

Web Development

 

Help Home

IT Labs Home

 
 
 
 
 

 
  Home > Printing > Unix Printing

Unix Printing


How do I print from Unix?

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

How do I print on just one side or both sides of the page?

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>

How do I cancel a print job under Unix?

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>
 
The University of Minnesota is an equal opportunity educator and employer.
IT Labs Online Help