Linux lpd Command
The Linux lpd command is a resident printer management program that manages local or remote printers based on the contents of /etc/printcap.
Each printer defined in /etc/printcap must have a corresponding directory in /var/lpd, where a file starting with cf represents a print job waiting to be sent to the appropriate device. This file is usually generated by lpr.
lpr and lpd form a system that can work offline; when you use lpr, the printer does not need to be immediately available, or even to exist.
lpd automatically monitors the status of the printer and immediately sends files for processing once the printer is online. This means applications do not have to wait for the printer to finish the previous job.
Syntax
lpd [-l] [#port]
Parameter Description:
- -l: Display some debugging messages on standard output.
- #port: In general, lpd uses getservbyname to obtain the appropriate TCP/IP port; you can use this parameter to force lpd to use a specified port.
Example
This program is usually executed by a script in /etc/rc.d during system startup.
Linux Command Reference