Academic computing logo            Text Only
 Sites of Interest
  - UW Oshkosh
  - Info. Technology
  - Academic Computing
  - Acad. Comp. Staff

 Getting Started
  - Introduction
  - Logging In
  - Passwords
  - Printing
  - Remote Access

 Resources
  - System Specs
  - ACLs

 Help
  - Lab FAQ
  - Known bugs
  - Problem Reports


UW Logo
AC Logo curve
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Academic Computing Logo

Linux Printing


Printing Commands

lpr Send jobs to printer
lpq View jobs in the print queue
lprm [jobid] Remove jobs From the print queue

Options Available in Description
-P[printer name] lpr, lpq, lprm Choose Which printer to send the job to
-l lpq Display more information
- lprm Remove all jobs by the user logged in

Sending Jobs to Different Printers

Use the chart above to find the printer you would like to print to. Use the command lpr -Pprintername filename to print to another printer from the command line. To print from within an application, add the -Pprintername after the lpr command in the applications printer control window.


Deleting Jobs from the Queue

To delete jobs from the queue, first you must retrieve the number of the print job. Type the command lpq to list the jobs. Add the option -Pprintername to find the jobs on a printer other than the default. Sample output is shown below with only one job in the queue.
halsey is ready and printing
Rank   Owner      Job  Files                         Total Size
active user    0    main.cc                      320 bytes
Type the command lprm num to delete the job with the id of num. Again add -Pprintername to change to a printer other than the default.

Type the lpq command again to see if the job has been deleted successfully.




This page is maintained by:
UW Oshkosh Webmaster
URL: http://www.acs.uwosh.edu/unix/printing.shtml
Last updated: Monday, August 15, 2005 - 01:34 PM