Linux / Unix Shell: Set Default Printer

Linux / Unix Shell: Set Default Printer

To set the default printer on a Linux or Unix system, you can use the lpadmin command with the -d option followed by the printer name.

For example, to set the printer printer1 as the default printer, you can use the following command:

lpadmin -d printer1
Sourc‮l.www:e‬autturi.com

This will set the printer printer1 as the default printer.

You can also use the lpoptions command to set the default printer. For example:

lpoptions -d printer1

This will set the printer printer1 as the default printer.

It's important to note that you may need to have root privileges to use the lpadmin command and the lpoptions command to set the default printer.

For more information about using the lpadmin command and the lpoptions command, you can refer to the lpadmin manual page and the lpoptions manual page. For example:

man lpadmin
man lpoptions

It's also important to make sure that the printer is configured and set up correctly on your system before attempting to set it as the default printer.

Created Time:2017-10-29 22:08:57  Author:lautturi