lpoptions(1)
π lpoptions β display or set printer options and defaults β¨
okay bestie, welcome to lpoptions, the OpenPrinting girlie of section 1 π. she's the one who holds all your printer vibes β every option, every default, every little instance β and she keeps receipts. let's get into it π«Ά
πΈ NAME πΈ
lpoptions β display or set printer options and defaults π
π¦ SYNOPSIS π¦
lpoptions [ -h server[:port] ] [ -E ] -d destination[/instance] [ -l ]
lpoptions [ -h server[:port] ] [ -E ] [ -p destination[/instance] ] -o
option[=value] ...
lpoptions [ -h server[:port] ] [ -E ] [ -p destination[/instance] ] -r
option
lpoptions [ -h server[:port] ] [ -E ] -x destination[/instance]
π DESCRIPTION π
so like. lpoptions displays or sets printer options and defaults. that's the whole job. she's the options manager, the default-keeper, the main character of your print config π
if you don't name a printer with the -p option, she just uses the default printer β exactly as described in lp(1). no printer drama, she knows who the default is.
if you don't pass -l, -o, or -r? then she just reports the current options on the standard output. a little show-and-tell, no edits, we're just looking β¨
the options you set with the lpoptions command are the ones that lp(1) and lpr(1) reach for when they submit jobs. so like, whatever you set here? that's what actually gets used. no cap π₯
and here's the big one β who you are changes where your stuff lives:
- run it as root and she gets and sets default options and instances for all users in the
/etc/cups/lpoptionsfile. everybody's defaults, one file, iconic π - run it as literally anyone else and your per-user defaults get managed in
~/.cups/lpoptions. your file, your rules π
β OPTIONS β
lpoptions supports the following options, bestie β all of them, no skipping, we don't gatekeep:
-Eβ Enables encryption when communicating with the CUPS server πβ¨-d destination[/instance]β Sets the user default printer to destination. If instance is supplied then that particular instance is used. this one overrides the system default printer for the current user β yeah, she can do that π-h server[:port]β Uses an alternate server. β οΈ Note: this option must occur before all others. like, she's gotta be first in line, she's the opening act π€-lβ Lists the printer specific options and their current settings. the full tour, the whole menu π-o option[=value]β Specifies a new option for the named destination. set it, queen π-p destination[/instance]β Sets the destination and instance, if specified, for any options that follow. If the named instance does not exist then it is created. but heads up β destinations can only be created using thelpadmin(8)program. so she'll make the instance, but she will NOT make the destination, that's not her department π-r optionβ Removes the specified option from the named destination. bye bestie π-x destination[/instance]β Removes the options for the named destination and instance, if specified. If the named instance does not exist then this does nothing β no error, no drama, just silence π. and again: destinations can only be removed using thelpadmin(8)command.
π FILES π
~/.cups/lpoptionsβ user defaults and instances created by non-root users. your personal lil corner of the filesystem π«Ά/etc/cups/lpoptionsβ system-wide defaults and instances created by the root user. the communal one, handle with care π
π CONFORMING TO π
The lpoptions command is unique to CUPS. she's one of a kind, no copycats, periodt β¨
π SEE ALSO π
cancel(1)lp(1)lpadmin(8)lpr(1)lprm(1)- CUPS Online Help (
http://localhost:631/help)
go read them, they're all part of the same friend group π¦
π COPYRIGHT π
Copyright Β© 2020-2024 by OpenPrinting. π«Ά
ok that's the whole page bestie, you ate that π β¨
so yeah β that's lpoptions from the OpenPrinting CUPS crew, and this lil guide was dated 2022-05-02, brought to you by CUPS. now go set some defaults, you gorgeous genius πππ
π¦ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 Β· Apache-2.0
- centos-stream 10: cups-client 1:2.4.10-18.el10 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- debian trixie: cups-client 2.4.10-3+deb13u1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- debian trixie: cups-client 2.4.10-3+deb13u2 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- fedora 43: cups-client 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups-client 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups-client 1:2.4.19-3.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-client 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-client 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups-client 1:2.4.19-3.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups-client 2.4.19-160000.2.1 Β· Apache-2.0
- ubuntu questing: cups-client 2.4.12-0ubuntu3
- ubuntu questing: cups-client 2.4.12-0ubuntu3.10
- ubuntu resolute: cups-client 2.4.16-1ubuntu1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu resolute: cups-client 2.4.16-1ubuntu1.3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu stonking: cups-client 2.4.16-1ubuntu3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- Copyright Β© 2020-2024 by OpenPrinting
- Copyright Β© 2007-2019 by Apple Inc
- Copyright Β© 1997-2006 by Easy Software Products
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms