← 返回命令列表

Linux command

lprm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Cancel all jobs

lprm -

Cancel specific job

lprm [job_id]

Cancel jobs on printer

lprm -P [printer] -

Cancel user's jobs

lprm [username]

Cancel job by ID on printer

lprm -P [printer] [job_id]

说明

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.

参数

-P _PRINTER_
Specify printer.
-E
Force encryption.
-U _USER_
Specify username.
--help
Display help information.

FAQ

What is the lprm command used for?

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.

How do I run a basic lprm example?

Run `lprm -` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -P _PRINTER_ do in lprm?

Specify printer.