Linux Printing, Client Connectivity
Some knowledge of the nitty-gritty details of how printing works in Linux is required for the Network+ exam.
As mentioned in the overview of NOSs, Linux accomplishes printing by using an industry-standard set of TCP/IP protocols designed to manage tasks related to printing.
The main printer service on Linux (and UNIX) is lpd, the line printer daemon (daemon is the UNIX-geekspeak for service). When network users on Linux machines print to a Linux printer, they use the lpr command to communicate with the lpd on the print server, and send the users file to it for printing. For example, to print the file hello.txt to the systems default printer, you would type at the Linux shell command line:
To print hello.txt to the printer techdept, which is not the systems default printer, you would type:
lpr Ptechdept hello.txt
In Windows, youd look at the print queue (that is, the list of print jobs lined up to print on a specific printer) by double-clicking on a printer. In Linux (hopefully, this wont be too much of a surprise by now), youd use another command line utility, lpq (line printer queue). For example, to view the queue for the systems default printer, youd use the command:
And when viewing the queue for the techdept printer, youd type at the command line:
The command line-oriented approach to printing in Linux is a bit different than users of Windows and Macintosh systems are used to, but in most cases, the only commands youll need to use to print in Linux and check on print job and printer status are lpr and lpq.
Home - Table Of Contents - Contact Us
CertiGuide for Network+ (http://www.CertiGuide.com/netplus/) on CertiGuide.com
Version 1.0 - Version Date: November 7, 2004
Adapted with permission from a work created by Tcat Houser and Helen O’Boyle.
CertiGuide.com Version © Copyright 2004 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.