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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access