Add a printer description by using the lpadmin(1M) 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.
Verify the Description information is correct.
$ lpstat -p printer-name -l |
In the following example, the command adds a printer description for the printer luna.
# lpadmin -p luna -D "Nathans office" |