English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux lpd command

Linux Command大全

The Linux lpd command is a resident printer management program that will /etc/to manage local or remote printers.

/etc/Each printer defined in printcap must be /var/There is a corresponding directory in lpd, where files starting with cf represent print jobs waiting to be sent to the appropriate device. This file is usually 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, nor does it need to exist.

lpd automatically monitors the status of the printer and immediately submits the file for processing when the printer is online. This allows all applications to not wait for the printer to complete the previous task.

Syntax

lpd [-l] [#port]

Parameter Description:

  • -l: Display some debugging messages on standard output.
  • #port: Generally, lpd will use getservbyname to obtain the appropriate TCP/IP port, you can use this parameter to force lpd to use the specified port.

Online Examples

This program is usually run by /etc/The programs in rc.d execute at the system startup stage.

Linux Command大全