lpadmin, lpopions: add pages

This commit is contained in:
vitorhcl 2023-12-15 03:02:48 -03:00
parent 5a5fadfdd8
commit b3ef12c383
3 changed files with 43 additions and 1 deletions

View File

@ -19,6 +19,6 @@
`lpq -P {{destino[/instância]}}`
- Mostrar os trabalhos na fila a cada n segundos até que a fila esteja vazia
- Mostrar os trabalhos na fila a cada n segundos até que a fila esteja vazia:
`lpq +{{intervalo}}`

21
pages/common/lpadmin.md Normal file
View File

@ -0,0 +1,21 @@
# lpadmin
> Configure cups printers and classes.
> See also: `lpoptions`.
> More information: <https://www.cups.org/doc/man-lpadmin.html>.
- Set the default printer:
`lpadmin -d {{printer}}`
- [d]elete a specific printer or class:
`lpadmin -x {{printer|class}}`
- Add a printer to a [c]lass:
`lpadmin -p {{printer}} -c {{class}}`
- [r]emove a printer from a class:
`lpadmin -p {{printer}} -r {{class}}`

21
pages/common/lpoptions.md Normal file
View File

@ -0,0 +1,21 @@
# lpoptions
> Display or set printer options and defaults.
> See also: `lpadmin`.
> More information: <https://www.cups.org/doc/man-lpoptions.html>.
- Set the default printer:
`lpoptions -d {{printer[/instance]}}`
- [l]ist printer-specific options of a specific printer:
`lpoptions -d {{printer}} -l`
- Set a new [o]ption on a specific printer:
`lpoptions -d {{printer}} -o option[=value]`
- Remove the options of a specific printer:
`lpoptions -d {{printer}} -x`