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 a job from the print queue, lprm or cancel will do the trick.



    SAMS Teach Yourself Unix in 10 Minutes
    Sams Teach Yourself Unix in 10 Minutes (2nd Edition)
    ISBN: 0672327643
    EAN: 2147483647
    Year: 2005
    Pages: 170

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net