1. Computing & Technology
Linux / Unix Command: lpc
Command Library

NAME

lpc - line printer control program  

SYNOPSIS

lpc [ command [ parameter(s) ] ]  

DESCRIPTION

lpc provides limited control over printer and class queues provided by CUPS. It can also be used to query the state of queues.

If no command is specified on the command-line, lpc will display a prompt and accept commands from the standard input.  

COMMANDS

The lpc program accepts a subset of commands accepted by the Berkeley lpc program of the same name:
exit

Exits the command interpreter.
help [command]

Displays a short help message.
quit

Exits the command interpreter.
status [queue]

Displays the status of one or more printer or class queues.
? [command]

Display a short help message.
 

LIMITATIONS

Since lpc is geared towards the Berkeley printing system, it is impossible to use lpc to configure printer or class queues provided by CUPS. To configure printer or class queues you must use the lpadmin(8) command or another CUPS-compatible client with that functionality.  

SEE ALSO

accept(8), cancel(1), disable(8), enable(8), lp(1), lpr(1), lprm(1), lpstat(1), reject(8), CUPS Software Administrators Manual, http://localhost:631/documentation.html  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.