Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix lpq command

Quick links

About lpq
Syntax
Examples
Related commands
Linux / Unix main page

About lpq

Lists the status of all the available printers.

Syntax

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

-a With BSD lists information about all printers.
- P destination Displays information about printer or class of printers. Specify destination using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names.
-l Displays 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 id The job number associated with a print request.
user The name of the user about whose jobs lpq reports information. Specify user as a valid username.
printer The name of the printer that you want to know about.

Examples

lpq -l - Displays printer long format information.

Related commands

lp
lpr
lprm
lpstat

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope