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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid