HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

lprm — Cancel queued print jobs of a server. See also: `lpq`. More information: <https://openprinting.githu

Submitted by: @import:tldr-pages··
0
Viewed 0 times
servercommandqueuedlprmcliprintjobscancel

Problem

How to use the lprm command: Cancel queued print jobs of a server. See also: lpq. More information: <https://openprinting.github.io/cups/doc/man-lprm.html>.

Solution

lprm — Cancel queued print jobs of a server. See also: lpq. More information: <https://openprinting.github.io/cups/doc/man-lprm.html>.

Cancel current job on the default printer:
lprm


Cancel a job of a specific server:
lprm -h {{server}} {{job_id}}


Cancel a job of a specific server in a specific port:
lprm -h {{server}}:{{port}} {{job_id}}


Cancel multiple jobs with an encrypted connection to the server:
lprm -E {{job_id1 job_id2 ...}}


Cancel all jobs:
lprm -


Cancel the current job of a specific printer or class:
lprm -P {{destination}}/{{instance}}

Code Snippets

Cancel current job on the default printer

lprm

Cancel a job of a specific server

lprm -h {{server}} {{job_id}}

Cancel a job of a specific server in a specific port

lprm -h {{server}}:{{port}} {{job_id}}

Cancel multiple jobs with an encrypted connection to the server

lprm -E {{job_id1 job_id2 ...}}

Cancel all jobs

lprm -

Context

tldr-pages: common/lprm

Revisions (0)

No revisions yet.