/etc/printcap

  • New printer definitions are added to /etc/printcap:

    lp|ljet:\
            :sd=/var/spool/lpd/lp:\
            :mx#0:\
            :sh:\
            :lp=/dev/lp0:\
            :if=/var/spool/lpd/lp/filter:
            :lf=/var/spool/lpd/lp/log:

    The lines in this example are defined as follows:

    lp|ljet:\

    This parameter defines two alternate names for the printer, lp or ljet.

    sd=spool_directory

    This parameter specifies the spool directory, under /var/spool/lpd.

    mx=max_size

    The maximum size of a print job in blocks. Setting this to #0 indicates no limit.

    sh

    Suppress header pages. Placing this attribute in printcap sets it, eliminating the headers.

    lp=printer_device

    The local printer device, such as a parallel port.

    if=input_filter

    The input filter to be used. See CUPS filters for additional information.

    lf=log_file

    The file where error messages are logged.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.