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.

INSTALL

sudo apt install cups-client
copy
sudo dnf install cups-client
copy
sudo apk add cups-client
copy
sudo zypper install cups-client
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid