O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required