LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lpadmin

configures CUPS printers

TLDR

Add printer
$ lpadmin -p [printer] -v [device://uri] -m [driver.ppd]
copy
Set default printer
$ lpadmin -d [printer]
copy
Delete printer
$ lpadmin -x [printer]
copy
Enable printer
$ lpadmin -p [printer] -E
copy
Set printer option
$ lpadmin -p [printer] -o [option=value]
copy
Add network printer
$ lpadmin -p [printer] -v ipp://[host]/printers/[name] -m everywhere
copy

SYNOPSIS

lpadmin [options]

DESCRIPTION

lpadmin configures CUPS printers. It adds, modifies, and removes printer definitions.The tool manages printer queues, options, and drivers. Administrator access is required.

PARAMETERS

-p PRINTER

Printer name.
-v URI
Device URI.
-m MODEL
Model/PPD file.
-d PRINTER
Set default printer.
-x PRINTER
Delete printer.
-E
Enable printer.
-o OPTION
Set option.
--help
Display help information.

INSTALL

sudo apt install cups-client
copy
sudo dnf install cups-client
copy
sudo apk add cups-client
copy
sudo zypper install cups-client
copy

CAVEATS

Requires root privileges. CUPS must be running. Driver availability varies.

HISTORY

lpadmin is part of CUPS (Common Unix Printing System), providing printer administration on Linux and macOS.

SEE ALSO

lp(1), lpinfo(8), cupsd(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid