System Administration Guide: Advanced Administration

How to Add a Printer Description

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. Add a printer description.


    # 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.

    For more information, see lpadmin(1M).

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

  3. Verify that the Description information is correct.


    $ lpstat -p printer-name -l
    

Example—Adding a Printer Description

The following example shows how to add a printer description for the printer luna.


# lpadmin -p luna -D "Nathans office"