Log in as superuser, lp, or assume an equivalent role on the print server.
# 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, such as *, ?, \, !, ^, 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.
Verify that the Description information is correct.
$ lpstat -p printer-name -l |
The following example shows how to add a printer description for the printer luna.
# lpadmin -p luna -D "Nathans office" |