Printing Files in Unix at UW CSE

Like everything else in Unix, printing is most commonly done at the command line. Here are some common printing-related commands and options. As always, to find more information, use man or info.

lpr
Your plain-vanilla line printer. lpr can handle plain-text passably well, but you should only use lpr when printing PostScript (i.e. .ps) files. Some options to pass to lpr:
Examples:
enscript
A fancier, more powerful way to print files. Do NOT use enscript to print anything but plain-text! Printing (for example) PostScript files using enscript will probably jam the printer with 200 pages of random characters. Useful options include:
Examples:
lpq
Ever wonder who's the jerk who's printing War and Peace when your project is due in 10 minutes? Check the print queue to find out the status of all the print jobs (including jobs sent from Windows!). The only option you need is:
lprm
lprm removes jobs from the print queue. In fact, since the Windows print queue sends its files to the Unix queues, you can kill jobs with lprm that you weren't fast enough to kill from Windows. Useful options and arguments include: Examples:

Comments to: hctang@cs.washington.edu
Last modified: