Linux lprm Command

Linux 命令大全Linux Command Reference

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

Incomplete printer jobs are placed in the printer queue. This command can be used to cancel jobs that have not yet been sent to the printer. Since each printer has an independent queue, you can use the -P option to specify the printer you want to target. If not specified, the system default printer is used.

 

This command checks whether the user has sufficient permissions to delete the specified files. 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 hpprinter

lprm -Phpprinter 1123

Remove job number 1011 from the default printer

lprm 1011

Linux 命令大全Linux Command Reference

Other Extensions