Linux and Unix lpq command

Quick links

About lpq
Syntax
Examples
Related commands
Linux and Unix main page

About lpq

Lists the status of all the available printers.

Syntax

lpq [-a] [-P destination] [-l] [+  [interval] [request id] [user] printer

-aWith BSD lists information about all printers.
- P destinationDisplays information about printer or class of printers. Specify destination using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names.
-lDisplays information in long format. Long format includes the name of the host from which a print request originated in the display.
+ [interval]Displays information at specific time intervals. Stops displaying information when the print queue is empty. Clears the screen before reporting displaying the print queue. Specify interval as the number of seconds between displays. If interval is not specified only executes once.
request idThe job number associated with a print request.
userThe name of the user about whose jobs lpq reports information. Specify user as a valid username.
printerThe name of the printer that you want to know about.

Examples

lpq -l

Displays printer long format information.

Related commands

lp
lpr
lprm
lpstat