2 .\" Copyright (C) 2006, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LPQ 1B "Feb 25, 2017"
8 lpq \- display the content of a print queue
12 \fB/usr/ucb/lpq\fR [\fB-P\fR \fIdestination\fR] [\fB-l\fR] [+ [\fIinterval\fR]]
13 [\fIrequest-ID\fR...] [\fIuser\fR]...
18 The \fBlpq\fR utility displays the information about the contents of a print
19 queue. A print queue is comprised of print requests that are waiting in the
20 process of being printed.
23 \fBlpq\fR displays the following information to the standard output:
28 the username of the person associated with a print request,
34 the position of a print request in the print queue,
40 the name of file or files comprising a print request,
46 the job number of a print request, and
52 the size of the file requested by a print request. File size is reported in
57 Normally, only as much information as will fit on one line is displayed. If the
58 name of the input file associated with a print request is not available, the
59 input file field indicates the standard input.
62 The print client commands locate destination information using the
63 \fBprinters\fR database in the name service switch. See \fBnsswitch.conf\fR(4),
64 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
67 The following options are supported:
74 Displays information in long format. Long format includes the name of the host
75 from which a print request originated in the display.
81 \fB\fB-P\fR \fIdestination\fR\fR
84 Displays information about printer or class of printers (see \fBlpadmin\fR(1M))
85 \fI\&.\fR Specify \fIdestination\fR using atomic, URI-style
86 (\fIscheme\fR\fB://\fR\fBendpoint\fR), or POSIX-style
87 (\fIserver\fR\fB:\fR\fIdestination\fR) names. See \fBprinters.conf\fR(4) for
88 information regarding destination names.
94 \fB\fB+\fR [\fIinterval\fR]\fR
97 Displays information at specific time intervals. Stops displaying information
98 when the print queue is empty. Clears the screen before reporting displaying
99 the print queue. Specify \fIinterval\fR as the number of seconds between
100 displays. If \fIinterval\fR is not specified only executes once.
105 The following operands are supported:
109 \fB\fIrequest-ID\fR\fR
112 The job number associated with a print request.
121 The name of the user about whose jobs \fBlpq\fR reports information. Specify
122 \fIuser\fR as a valid username.
127 The following exit values are returned:
134 Successful completion.
149 \fB\fB$HOME/.printers\fR\fR
152 User-configurable printer database
158 \fB\fB/etc/printers.conf\fR\fR
161 System printer configuration database
167 \fB\fBprinters.conf.byname\fR\fR
170 NIS version of \fB/etc/printers.conf\fR
176 \fB\fBou=printers\fR\fR
179 LDAP version of \fB/etc/printers.conf\fR
184 See \fBattributes\fR(5) for descriptions of the following attributes:
192 ATTRIBUTE TYPE ATTRIBUTE VALUE
194 Interface Stability Standard
199 \fBlp\fR(1), \fBlpc\fR(1B), \fBlpr\fR(1B), \fBlprm\fR(1B), \fBlpstat\fR(1),
200 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
201 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
204 When IPP is in use, the user is prompted for a passphrase if the remote print
205 service is configured to require authentication.