lpq, lprm: add pages

This commit is contained in:
vitorhcl 2023-12-14 22:19:28 -03:00
parent fde7b0657c
commit 72eed5d05f
2 changed files with 49 additions and 0 deletions

24
pages/common/lpq.md Normal file
View File

@ -0,0 +1,24 @@
# lpq
> Show printer queue status.
> More information: <https://www.cups.org/doc/man-lpq.html>.
- Show the queued jobs of the default destination:
`lpq`
- Show the queued jobs of [a]ll printers enforcing [E]ncryption:
`lpq -a -E`
- Show the queued jobs in a [l]ong format:
`lpq -l`
- Show the queued jobs of a specific printer or class:
`lpq -P {{destination[/instance]}}`
- Show the queued jobs once every n seconds until the queue is empty:
`lpq +{{interval}}`

25
pages/common/lprm.md Normal file
View File

@ -0,0 +1,25 @@
# lprm
> Cancel queued print jobs of a server.
> See also: `lpq`.
> More information: <https://www.cups.org/doc/man-lprm.html>.
- Cancel current job on the default printer:
`lprm`
- Cancel a job of a specific server:
`lprm -h {{server[:port]}} {{job_id}}`
- Cancel multiple jobs with a [E]ncrypted connection to the server:
`lprm -E {{job_1_id}} {{job_2_id}}`
- Cancel all jobs:
`lprm -`
- Cancel the current job of a specific printer or class:
`lprm -P {{destination[/instance]}}`