Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux lpd Command

Linux lpd Command

Linux Command Reference Linux Command Reference

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:

Example

This program is usually executed by a script in /etc/rc.d during system startup.

Linux Command Reference Linux Command Reference