Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access