O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lpc

Synopsis

                  lpc [options] [command]

System administration command. LPRng line printer control program. If executed without a command, lpc accepts commands from standard input. Some of the commands accept a jobid parameter. A jobid can be one or more job numbers, user names, lpd key characters, or key character and glob patterns of the form X = pattern. It can also be the keyword all, which matches all jobs.

Options

-a

Alias for the -Pall command. Operate on all printer spool queues listed in the printcap all field.

-A

Use authentication as specified in the AUTH environment variable.

-P printer

Specify the print spool queue to operate on. A printer may also specify a host (e.g., printer@host). The default queue is the queue for whatever printer is listed in the PRINTER environment variable, or the first entry in the /etc/printcap file. If the keyword all is given instead of a printer name, lpc will operate on printers specified in the all field of the /etc/printcap file on the appropriate host. If no all field is specified, then lpc will use lpd on the appropriate host to find all available printers.

-S server

Send commands to the specified server instead of whatever server is listed in /etc/printcap or set using the -P option.

-U user

Execute commands as if they were made by user.

-V

Print version number, then exit.

Commands

?, help [commands]

Get a list of commands or help on specific commands.

active [printer@host]

Report whether lpd server is active.

abort all|printer

Terminate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required