You are here: >

Linux and Unix lpq command

lpq commandAbout lpq
lpq syntax
lpq examples
Related commands
Linux and Unix main page

About lpq

Lists the status of all the available printers.

Description

lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line.

The +interval option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every interval seconds.

lpq syntax

lpq [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] 
    [ -a ] [ -l ] [ +interval ]

Options

-E Forces encryption when connecting to the server.
-P destination[/instance] Specifies an alternate printer or class name.
-U username Specifies an alternate username.
-a Reports jobs on all printers.
-h server[:port] Specifies an alternate server.
-l Requests a more verbose (long) reporting format.

lpq examples

lpq -l

Displays printer information in verbose format.

lp — Print a file on the System V operating system.
lpr — Submit print requests.
lprm — Remove requests from the print queue.
lpstat — List the status of the LP print services.