Bootstrap FreeKB - Linux Commands - lprm (remove print jobs)
Linux Commands - lprm (remove print jobs)

Updated:   |  Linux Commands articles

Before printing, you may want to use the lpstat or lpc commands to list the available printers. You may want to also use the pr command to format a file for printing.

There are a few different commands that can be used to sent print jobs to the printer.

  • lp (Line print)
  • lpr (Line print request)
  • lpd (Line print daemon)

The lpq command can be used to view and cancel print jobs in the print queue.

The lprm command can be used to remove a print job. In this example, the print with Job ID 3 is removed.

lprm 3

 

The - character removes every print job in the queue.

lprm -

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 37579c in the box below so that we can be sure you are a human.