Printing with lp

If your Unix system is hooked up to a printer that you can access, you can print easily using the lp utility (Code Listing 15.6). (lp stands for line printer...you know, from the dark ages, practically.) If printing with lp is not a cinch, you likely have a system issue that you should address with the system administrator.

Code Listing 15.6. Use the lp utility to print your files, rhymes, and more.
[jdoe@frazz jdoe]$ lp limerick
request id is lp-46 (1 file(s))
[jdoe@frazz jdoe]$ lp -d hplaser
→ limerick.rot13
request id is hplaser-85 (1 file(s))
[jdoe@frazz jdoe]$

To Print with lp:

  • lp filename

    At the shell prompt, type lp followed by the name of the file to print. Usually, you’ll see confirmation that the file went to the ...

Get Unix Third Edition: Visual Quickstart Guide 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.