LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lpoptions

display or set printer options and defaults

TLDR

Show default options
$ lpoptions
copy
Show printer options
$ lpoptions -p [printer] -l
copy
Set default printer
$ lpoptions -d [printer]
copy
Set printer option
$ lpoptions -p [printer] -o [option=value]
copy
Remove option
$ lpoptions -p [printer] -r [option]
copy
List options for the default printer
$ lpoptions -l
copy
Remove all options for a printer instance
$ lpoptions -x [printer/instance]
copy

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.

SEE ALSO

lp(1), lpadmin(8), lpstat(1), lpr(1), lpq(1), cups(1)

Copied to clipboard
Kai