Define a class of printers by using the lpadmin command.
# 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 the printers in a printer class by using the lpstat command.
$ lpstat -c printer-class |
In the following example, the command adds the printer luna in the class roughdrafts.
# lpadmin -p luna -c roughdrafts |