Summary

In this lesson, you learned the commands you need to print from the command line. The suite of lpr, lpq, and lprm commands make up the basis for printing from Unix and most Unix computers. Here's a review of some of what we covered in this lesson:

  • lpr and lp— The lpr and lp commands are used to send a file to the printer. If the file is a type other than plain text, it can be processed by a filter that correctly formats the information for your printer.

  • lpq and lpstat— When a print request is sent to the printer, either from lpr or enscript, it is added to the printer queue. Use the lpq or lpstat -t program to display all pending printer transactions, their corresponding job IDs, and their owners.

  • lprm and cancel— If you want to remove ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.