Printing Files

You may print files by typing

your_machine> lpr filename

You must tell UNIX which printer to send the job to, either by setting an environment variable, or by inserting the -P flag. Thus, to have the file myprint.ps print at the printer on the third floor, type

your_machine> lpr -Phpr3 myprint.ps

There are several printers in the department to which you may send your output, as described in the table below.


Printer Name    Description          Location

hpr0            HP Laserjet IVsi1    Terminal room (3)

hpcolor0        HP Deskjet 1200C     Terminal room (3)

lp4             HP Laserjet IVsi     Newton Lab (101W)

hpr1            HP Laserjet III      1st floor printer
                                   
hpr2            HP Laserjet III      2nd floor printer

hpr3            HP Laserjet III      3rd floor printer



To check on the status of your print job, use the lpq command. for example, to check on the status of jobs on the color printer, type

your_machine> lpq -Phpcolor0

Occasionally, after a job is sent to the printer you will realize that it was a mistake. To delete the job from the queue, first find its job number by using lpq. Next, use lprm to delete it. To delete job number 23 from the color printer queue, type

your_machine> lprm -Phpcolor0 23

If you cannot find the job number using lpq, then it is too late to delete it - it is already coming out of the printer.