mirror of https://github.com/CrimsonTome/tldr.git
22 lines
421 B
Markdown
22 lines
421 B
Markdown
# lpadmin
|
|
|
|
> Configure CUPS printers and classes.
|
|
> See also: `lpoptions`.
|
|
> More information: <https://openprinting.github.io/cups/doc/man-lpadmin.html>.
|
|
|
|
- Set the default printer:
|
|
|
|
`lpadmin -d {{printer}}`
|
|
|
|
- Delete a specific printer or class:
|
|
|
|
`lpadmin -x {{printer|class}}`
|
|
|
|
- Add a printer to a class:
|
|
|
|
`lpadmin -p {{printer}} -c {{class}}`
|
|
|
|
- Remove a printer from a class:
|
|
|
|
`lpadmin -p {{printer}} -r {{class}}`
|