lpadmin

Configure CUPS printers and classes. See also: lpoptions. More information: <https://openprinting.github.io/cups/doc/man-lpadmin.html>.

Install

All systems
curl cmd.cat/lpadmin.sh
Debian Debian
apt-get install cups-client
Ubuntu
apt-get install cups-client
Alpine
apk add cups
Arch Arch Linux
pacman -S cups
image/svg+xml Kali Linux
apt-get install cups-client
Fedora
dnf install cups-1
Windows (WSL2)
sudo apt-get update sudo apt-get install cups-client
Raspbian
apt-get install cups-client
Docker
docker run cmd.cat/lpadmin lpadmin powered by Commando

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

© tl;dr; authors and contributors