System and processes

The lpadmin command

Administers printers in CUPS: with -p and -v you add a printer and its destination.

Syntax

sudo lpadmin -p <nombre> -v <uri> -ETry it in the terminal →

Most useful options

-pPrinter name
-vDevice URI
-EEnable it

Copy-ready examples

$ sudo lpadmin -p Otra -v ipp://192.168.1.60/ipp/print -EAdd a printer

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The URI is usually ipp://IP/ipp/print for network printers.

Related commands

FAQ

What does lpadmin do?

It administers CUPS printers: add, delete or configure them.

An example?

lpadmin -p room -E -v ipp://printer/ipp/print.

More System and processes commands

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course