Linux Comm Lpd
# Linux lpd Command
[ Linux Command Manual](#)
The Linux lpd command is a resident printer management daemon 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. Files starting with "cf" in this directory represent print jobs waiting to be sent to the appropriate device. This file is typically generated by lpr.
lpr and lpd together form a system that can work offline. When you use lpr, the printer does not need to be immediately available or even exist.
lpd automatically monitors the status of printers. When a printer comes online, it immediately submits the files for processing. This allows all applications to proceed without waiting for the printer to finish the previous job.
### Syntax
lpd [#port]
**Parameter Description**:
* -l: Display some debug messages on standard output.
* #port: Generally, 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 typically executed during the system startup phase by programs in /etc/rc.d.
[ Linux Command Manual](#)
YouTip