]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lpoptions.man.in
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / man / lpoptions.man.in
CommitLineData
ef416fc2 1.\"
6e12033b 2.\" lpoptions man page for CUPS.
ef416fc2 3.\"
6e12033b
MS
4.\" Copyright 2007-2014 by Apple Inc.
5.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 6.\"
e3101897 7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ef416fc2 8.\"
6e12033b 9.TH lpoptions 1 "CUPS" "12 June 2014" "Apple Inc."
ef416fc2 10.SH NAME
11lpoptions \- display or set printer options and defaults
12.SH SYNOPSIS
13.B lpoptions
6e12033b
MS
14[
15.B \-E
16] [
17.B \-U
bd7854cb 18.I username
6e12033b
MS
19] [
20\fB\-h \fIserver\fR[\fB:\fIport\fR]
21]
22\fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
23[
24.B \-l
ef416fc2 25]
26.br
27.B lpoptions
6e12033b
MS
28[
29.B \-E
30] [
31.B \-U
bd7854cb 32.I username
6e12033b
MS
33] [
34\fB\-h \fIserver\fR[\fB:\fIport\fR]
35] [
36\fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
37]
38\fB\-o \fIoption\fR[\fB=\fIvalue\fR] ...
ef416fc2 39.br
40.B lpoptions
6e12033b
MS
41[
42.B \-E
43] [
44.B \-U
bd7854cb 45.I username
6e12033b
MS
46] [
47\fB\-h \fIserver\fR[\fB:\fIport\fR]
48] [
49\fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
50]
51.B \-r
ef416fc2 52.I option
53.br
54.B lpoptions
6e12033b
MS
55[
56.B \-E
57] [
58.B \-U
bd7854cb 59.I username
6e12033b
MS
60] [
61\fB\-h \fIserver\fR[\fB:\fIport\fR]
62]
63\fB\-x \fIdestination\fR[\fB/\fIinstance\fR]
ef416fc2 64.SH DESCRIPTION
6e12033b
MS
65\fBlpoptions\fR displays or sets printer options and defaults.
66If no printer is specified using the \fI\-p\fR option, the default printer is used as described in
67.BR lp (1).
68.LP
69If no \fI\-l\fR, \fI\-o\fR, or \fI\-r\fR options are specified, the current options are reported on the standard output.
70.LP
71Options set with the \fBlpoptions\fR command are used by the
72.BR lp (1)
73and
74.BR lpr (1)
75commands when submitting jobs.
76.LP
77When run by the root user, \fBlpoptions\fR gets and sets default options and instances for all users in the \fI/etc/cups/lpoptions\fR file.
78Otherwise, the per-user defaults are managed in the \fI~/.cups/lpoptions\fR file.
79.SH OPTIONS
80\fBlpoptions\fR supports the following options:
ef416fc2 81.TP 5
6e12033b 82.B \-E
ef416fc2 83Enables encryption when communicating with the CUPS server.
84.TP 5
6e12033b 85\fB\-U \fIusername\fR
bd7854cb 86Uses an alternate username.
87.TP 5
6e12033b
MS
88\fB\-d \fIdestination\fR[\fB/\fIinstance\fR]
89Sets the user default printer to \fIdestination\fR.
90If \fIinstance\fR is supplied then that particular instance is used.
91This option overrides the system default printer for the current user.
ef416fc2 92.TP 5
6e12033b 93\fB\-h \fIserver\fR[\fB:\fIport\fR]
bd7854cb 94Uses an alternate server.
ef416fc2 95.TP 5
6e12033b 96.B \-l
ef416fc2 97Lists the printer specific options and their current settings.
98.TP 5
6e12033b 99\fB\-o \fIoption\fR[\fB=\fIvalue\fR]
ef416fc2 100Specifies a new option for the named destination.
101.TP 5
6e12033b
MS
102\fB\-p \fIdestination\fR[\fB/\fIinstance\fR]
103Sets the destination and instance, if specified, for any options that follow.
104If the named instance does not exist then it is created.
105Destinations can only be created using the
106.BR lpadmin (8)
107program.
ef416fc2 108.TP 5
6e12033b
MS
109\fB\-r \fIoption\fR
110Removes the specified option from the named destination.
ef416fc2 111.TP 5
6e12033b
MS
112\fB\-x \fIdestination\fR[\fB/\fIinstance\fR]
113Removes the options for the named destination and instance, if specified.
114If the named instance does not exist then this does nothing.
115Destinations can only be removed using the
116.BR lpadmin (8)
117command.
ef416fc2 118.SH FILES
6e12033b 119\fI~/.cups/lpoptions\fR - user defaults and instances created by non-root users.
ef416fc2 120.br
6e12033b
MS
121\fI/etc/cups/lpoptions\fR - system-wide defaults and instances created by the root user.
122.SH CONFORMING TO
123The \fBlpoptions\fR command is unique to CUPS.
ef416fc2 124.SH SEE ALSO
6e12033b
MS
125.BR cancel (1),
126.BR lp (1),
127.BR lpadmin (8),
128.BR lpr (1),
129.BR lprm (1),
130CUPS Online Help (http://localhost:631/help)
ef416fc2 131.SH COPYRIGHT
bd5a2f28 132Copyright \[co] 2007-2017 by Apple Inc.