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