lpoptions
display or set printer options and defaults
TLDR
Show default options
$ lpoptions
Show printer options$ lpoptions -p [printer] -l
Set default printer$ lpoptions -d [printer]
Set printer option$ lpoptions -p [printer] -o [option=value]
Remove option$ lpoptions -p [printer] -r [option]
List options for the default printer$ lpoptions -l
Remove all options for a printer instance$ lpoptions -x [printer/instance]
SYNOPSIS
lpoptions [options]
DESCRIPTION
lpoptions displays or sets printer options and defaults. When run with no arguments, it shows the default printer options.User-specific settings are stored in ~/.cups/lpoptions. When run by root, system-wide defaults in /etc/cups/lpoptions are used instead. Options like paper size, media type, and print quality can be configured per printer or per instance.
PARAMETERS
-d destination[/instance]
Set the user default printer to the named destination.-p destination[/instance]
Set the destination and instance for any options that follow.-l
List printer-specific options and their current settings.-o option[=value]
Set a new option for the named destination.-r option
Remove the specified option from the named destination.-x destination[/instance]
Remove all options for the named destination and instance.-E
Enable encryption when communicating with the CUPS server.-h server[:port]
Connect to the specified server.
CAVEATS
Options are printer-specific and may vary between devices. System-wide options in /etc/cups/lpoptions require root access. Instances allow defining named sets of options for a single printer.
HISTORY
lpoptions is part of CUPS for configuring default printer options and destinations.
