Linux Comm Lpq
# Linux lpq Command
[ Linux Command Manual](#)
The Linux lpq command is used to view the status of a print queue. This program can view the status of a printer queue and the print jobs it contains.
### Syntax
lpq
**Parameter Description:**
* -P Specifies a printer; otherwise, it uses the default printer or the printer specified by the environment variable PRINTER.
* -l Prints information about all files that make up the job.
### Examples
An empty queue for the system's default printer, named "printer".
$ lpq printer is ready no entries
If no printer is 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 the following.
$ 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](#)
YouTip