You are here: >

Linux and Unix lprm command

lprm commandAbout lprm
lprm syntax
lprm examples
Related commands
Linux and Unix main page

About lprm

Removes print requests from the print queue.


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

lprm syntax

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


-E Forces encryption when connecting to the server.
-P destination[/instance] Specifies the destination printer or class.
-U username Specifies an alternate username.
-h server[:port] Specifies an alternate server.

lprm 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.