Easy Tutorial
❮ Linux Comm Liloconfig Linux Comm Logrotate ❯

Linux lpq Command

Linux Command Manual

The Linux lpq command is used to check the status of a print queue, allowing you to view the status of the printer queue and its contained print jobs.

Syntax

lpq [l] [P] [user]

Parameter Description:

Example

For an empty queue of the system's default printer, printer.

$ lpq  
printer is ready  
no entries

If a printer is not specified beforehand (using the -P option), the system will display the default printer. If you send a print job to the printer and then check the print queue, you will see a list like this.

$ ls *.txt | pr -3 | lp  
request id is printer-603 (1 file(s))  
[me@linuxbox ~]$ lpq  
printer is ready and printing  
Rank    Owner   Job     File(s)                         Total Size  
active  me      603     (stdin)

Linux Command Manual

❮ Linux Comm Liloconfig Linux Comm Logrotate ❯