On Unix-like operating systems, the lprm command removes print requests from the print queue.

Description

lprm cancels print jobs that were queued for printing. If no arguments are supplied, the current job on the default destination is canceled. You can specify one or more job ID numbers to cancel those jobs or use the - option to cancel all jobs.

  • Description
  • Syntax
  • Examples
  • Related commands
  • Linux commands help

Syntax

lprm [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] [ - ] [ job ID(s) ]

Options

Examples

lprm -P mydest 385

Removes job ID 385 from destination mydest.

lp — Print a file on the System V operating system.lpc — Control line printers.lpq — List the status of available printers.lpr — Submit print requests.lpstat — List the status of the LP print services.lpadmin — Configure LP print services.