Linux lpd command

Linux 命令大全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. A file in the directory beginning 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 does not even need to exist.

lpd automatically monitors the printer status. When the printer comes online, it immediately sends the file for processing. This allows all applications to avoid waiting for the printer to complete 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 the specified port.

Examples

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

Linux 命令大全Linux Command Reference

Other Extensions