Skip to content

Windows LPQ command

The Windows lpq command is a useful tool for managing print jobs from the command line. It allows users to check the status of print jobs, manage print queues, and troubleshoot printing issues efficiently. By using the lpq command, users can easily monitor and control their printing tasks without the need for a graphical user interface. This command provides a convenient way to view information about print jobs, such as their job ID, status, and owner, making it easier for users to track and manage their printing activities. Additionally, the lpq command can be used to prioritize, hold, resume, and cancel print jobs, providing users with greater control over their printing tasks.

Terminal window
lpq [option] [parameter]
OptionDescription
-PSpecify the destination printer queue
-lDisplay a detailed list of print jobs
ParameterDescription
queue_nameName of the printer queue
Terminal window
lpq -P printer_name

This command checks the status of a specific printer named “printer_name”.

Terminal window
lpq -a

Command to view all printers in the system queue.

Check the printer status with verbose output

Section titled “Check the printer status with verbose output”
Terminal window
lpq -l

Using the lpq command with -l option provides the printer status with verbose output.

Terminal window
lpq -P printer_name -a

This command checks the queue status for a specific printer named “printer_name”.

To use the lpq command in Windows, execute the following command:

Terminal window
lpq -S <server_name>

The lpq command in Windows is used to display the status of a print queue on a Line Printer Daemon (LPD) printer server.

How can I check the print queue status using lpq in Windows?

Section titled “How can I check the print queue status using lpq in Windows?”

You can check the print queue status by running the following command:

Terminal window
lpq -S <server_name>

How do I specify a particular printer when using lpq in Windows?

Section titled “How do I specify a particular printer when using lpq in Windows?”

To specify a particular printer when using lpq in Windows, use the -P option followed by the printer name. Here’s an example:

Terminal window
lpq -S <server_name> -P <printer_name>

Can I use lpq to check the print queue status on a remote printer server in Windows?

Section titled “Can I use lpq to check the print queue status on a remote printer server in Windows?”

Yes, you can check the print queue status on a remote printer server by providing the server name with the -S option. Here’s an example:

Terminal window
lpq -S <server_name>

How can I view detailed information about a print job with lpq in Windows?

Section titled “How can I view detailed information about a print job with lpq in Windows?”

To view detailed information about a print job, you can use the -l option with the lpq command. Here’s an example:

Terminal window
lpq -S <server_name> -l

Is it possible to filter the output of lpq in Windows?

Section titled “Is it possible to filter the output of lpq in Windows?”

Yes, you can filter the output of the lpq command in Windows by using tools like grep or find. For example:

Terminal window
lpq -S <server_name> | find "job"
  • Display information about print jobs in a queue
  • Show the status of print jobs in a queue
  • View details such as job ID, owner, status, and printing progress of each job in a queue