Log in as superuser, lp, or assume an equivalent role on the system where you want to set a default printer.
Set the system's default printer.
# lpadmin -d [printer-name] |
-d printer-name specifies the name of the printer you are assigning as the system's default printer. If you don't specify printer-name, the system is set up with no default printer.
Check the system's default printer.
# lpstat -d |
The following example shows how to set the printer luna as the system's default printer. The printer luna is used as the system's default printer if the LPDEST or the PRINTER environment variables are not set.
# lpadmin -d luna # lpstat -d system default destination: luna |