Administration
lpc
Line printer control; manage printer queues in CUPS/LPD.
Additional Notes
lpc is a printer control command that provides an interactive interface for managing printer queues. It can start, stop, enable, disable, and check the status of print queues on a CUPS or LPD printing system.
While largely a legacy command from the Berkeley LPD system, lpc is still available in CUPS for backward compatibility. Most functionality is now available through lpadmin, lpstat, and cupsenable/cupsdisable.
Syntax
lpc [command [arguments]]
When run without arguments, lpc enters interactive mode.
Interactive Commands
status [printer]: Show the current status of a printer queue.start [printer]: Start a printer queue.stop [printer]: Stop a printer queue (no new jobs accepted).enable [printer]: Enable the queue so it can accept jobs.disable [printer]: Disable the queue so it does not accept jobs.restart [printer]: Stop and restart the printer queue.down [printer] [message]: Take the queue down with a status message.up [printer]: Bring the queue back up.topq printer job-id: Move a job to the top of the queue.clean [printer]: Remove temporary files.help [command]: Show help.exitorquit: Leave interactive mode.
Parameters
options: Flags that change howlpcbehaves.target: Optional file, device, interface, user, service, or command target when the command supports one.
Examples
lpc status all
Show the status of all printer queues.
lpc status OfficePrinter
Show the status of a specific printer.
lpc stop OfficePrinter
Stop the printer queue; jobs remain in the queue but are not processed.
lpc disable OfficePrinter
Prevent the queue from accepting new jobs.
lpc start OfficePrinter
Restart processing jobs in the queue.
lpc topq OfficePrinter 42
Move job ID 42 to the top of the queue.
lpc
Enter interactive mode for multiple commands.
Practical Notes
lpcis part of CUPS for LPD compatibility but many tasks are better done withcupsenable,cupsdisable,lpstat, andlpadmin.stoppauses queue processing but does not affect job acceptance;disablestops job acceptance.- Some LPD-only features of
lpcmay not work with CUPS backends.