Easy Tutorial
❮ Linux Comm Timeconfig Linux Comm Dd ❯

Linux lprm Command

Linux Command Manual

The Linux lprm command is used to remove a job from the printer queue.

Incomplete printer jobs are placed in the printer queue, and this command can be used to cancel jobs that have not yet been sent to the printer. Each printer has its own independent queue, and you can use the -P option to specify the printer queue you want to act on. If not specified, the system default printer will be used.

This command checks whether the user has sufficient permissions to delete the specified file. Generally, only the file owner or the system administrator has this permission.

Syntax

/usr/bin/lprm [P] [file...]

Examples

Remove job number 1123 from the printer queue hpprinter:

lprm -Phpprinter 1123

Remove job number 1011 from the default printer queue:

lprm 1011

Linux Command Manual

❮ Linux Comm Timeconfig Linux Comm Dd ❯