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