English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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 been sent to the printer. Since each printer has an independent queue, you can use -P This command sets the printer to be used. If not set, it will use the system default printer.
This command checks if the user has sufficient permissions to delete the specified file. Generally, only the owner of the file or the system administrator has this permission.
/usr/bin/lprm [P] [file...]
Remove the job number from the printer hpprinter 1123 Numbered job removed from the printer hpprinter
lprm -Phpprinter 1123
Remove the job number 1011 Numbered job removed from the preset printer
lprm 1011