|
|
To group printers into a printer class,
add each printer to the class using the following command:
/usr/lib/lpadmin -p printer_name -c class_name
For example, to add printer snapper to the class fish,
enter:
/usr/lib/lpadmin -p snapper -c fish
If the class does not exist, lpadmin creates it.
A printer does not belong to any class until you add it to one.
To list all the classes and the printers that belong to them, enter:
lpstat -c
You see a display similar to:
members of class fish: snapper salmon
To remove a printer from a class, enter:
/usr/lib/lpadmin -p printer_name -r class_name
For example, remove printer salmon from class fish:
/usr/lib/lpadmin -p salmon -r fish
If the printer was the only member of the class, the class is removed.
To remove a class, enter:
/usr/lib/lpadmin -x class_name
Removing a class does not remove the printers that were members of the class.
If the printer or class removed is also the system default destination, the system no longer has a default destination.
See also: