Name

lpc

Synopsis

lpc [command]

Description

System administration command. Control line printer. If executed without a command, lpc will accept commands from standard input.

Commands

?, help [commands]

Get a list of commands or help on specific commands.

abort all|printer

Terminate current printer daemon and disable printing for the specified printer.

clean all|printer

Remove files that cannot be printed from the specified printer queues.

disable all|printer

Disable specified printer queues.

down all|printer message

Disable specified printer queues and put message in the printer status file.

enable all|printer

Enable the specified printer queues.

exit, quit

Exit lpc.

restart all|printer

Try to restart printer daemons for the specified printers.

start all|printer

Enable the printer queues and start printing daemons for the specified printers.

status all|printer

Return the status of the specified printers.

stop all|printer

Disable the specified printer daemons after any current jobs are completed.

topq printer [jobnumbers] [users]

Put the specifed jobs at the top of the printer’s queue in the order the jobs are listed.

up all|printer

Enable print queues and restart daemons for the specified printers.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.