O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lprm

Synopsis

                  lprm [options] [jobid]

Remove a print job from the print spool queue. You must specify a job number or numbers, which can be obtained from lpq. A jobid can be one or more job numbers, usernames, lpd key characters, or key character and glob patterns of the form X = pattern. It can also be the keyword all, which matches all jobs. Only a privileged user may remove files belonging to another user.

Options

-a

Remove all jobs available to the user. Same as using the jobid ALL.

-A

Use authentication.

-P printer

Specify printer queue. Normally, the default printer or printer specified in the PRINTER environment variable is used.

-U user

Remove files as if command were executed by user. Only a privileged user can use this option.

-V

Print version, then exit.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required