Log in as superuser, lp, or assume an equivalent role on the print server.
# lpadmin -p printer-name -c printer-class |
-p printer-name |
Name of the printer you are adding to a class of printers. |
-c printer-class |
Name of a class of printers. |
The specified printer is added to the end of the list in the class in the print server's /etc/lp/classes/printer-class file. If the printer class does not exist, it is created.
Verify that the printers are in a printer class.
$ lpstat -c printer-class |
The following example shows how to add the printer luna in the printer class roughdrafts.
# lpadmin -p luna -c roughdrafts |