System Administration Guide

How to Add a Printer Description

  1. Log in as superuser or lp on the print server.

  2. Add a printer description by using the lpadmin command.


    # lpadmin -p printer-name -D "comment"
    p printer-name
    

    Name of the printer for which you are adding a description. 

    -D "comment"
    

    Specifies the characteristics of the printer, such as location or administrative contact. Enclose characters that the shell might interpret (like *, ?, \, !, ^) in single quotation marks.

    The printer description is added in the print server's /etc/lp/printers/printer-name/comment file.

  3. Verify the Description information is correct.


    $ lpstat -p printer-name -l
    

Example--Adding a Printer Description

In the following example, the command adds a printer description for the printer luna.


# lpadmin -p luna -D "Nathans office"