Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
System administration command. Configure CUPS printer queues. The command requires one of the following options: -d, -p, or -x. When a queue is configured to require a password, the lpadmin command will prompt for one.
Options
-dqueue
Set the default destination for CUPS commands like lp and lpr to the specified queue.
-E
Always use encryption when connecting to the server.
-hserver
Apply configuration commands remotely to the specified CUPS server.
-pprinterprint-options
Apply print-options (documented below) to the specified printer.
-xqueue
Delete the specified queue. Abort any current print job and discard any pending print jobs.
Print options
Use these additional options with the -p option listed above.
-cclass
Add printer to the specified class. Create class if it does not already exist.
-Ddescription
Set the text description of the printer.
-E
Enable printer.
-Llocation
Set the printer location text.
-iscript
Use the specified System V-style interface script.
-mfilename
Use the specified System V interface script or PPD file found in the model directory.
-oname=value
Set the value of PPD or server option name. For a list of available PPD options, use the lpoptions command.
-Pfilename
Use the PPD specified by filename. This option overrides the -i printer option.
-rclass
Remove printer from the specified class. Remove class if it has no printer entries.
-u allow:[@] name, -u deny:[@] name
Set user level access control. To specify a group instead of a user name, preface the name with @. You may also use the special names all and none.
-vuri
Set the device universal resource indicator, uri. If given as a filename, the command will automatically convert it to a file URI.