LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lprm

removes print jobs from the queue

TLDR

Cancel all jobs
$ lprm -
copy
Cancel specific job
$ lprm [job_id]
copy
Cancel jobs on printer
$ lprm -P [printer] -
copy
Cancel user's jobs
$ lprm [username]
copy
Cancel job by ID on printer
$ lprm -P [printer] [job_id]
copy

SYNOPSIS

lprm [options] [job]

DESCRIPTION

lprm removes print jobs from the queue. It cancels pending or processing jobs.The tool is the BSD-style job removal command. Users can only remove their own jobs unless root.

PARAMETERS

JOB

Job ID or "-" for all.
-P PRINTER
Specify printer.
-E
Force encryption.
-U USER
Specify username.
--help
Display help information.

INSTALL

sudo apt install lpr
copy
sudo dnf install cups-client
copy
sudo apk add cups-client
copy
sudo zypper install cups-client
copy

CAVEATS

Requires CUPS. Users limited to own jobs. May not stop printing in progress.

HISTORY

lprm originated in BSD Unix for removing print jobs, now implemented by CUPS.

SEE ALSO

lp(1), lpr(1), lpq(1), cancel(1)

Copied to clipboard
Kai