LPC(8)
๐ LPC(8) โ the line printer control program, bestie edition ๐
System Manager's Manual ยท LPC(8) ยท ok so this is the lpc page and we're gonna get through it together ๐ซถ
โจ NAME โจ
lpc โ line printer control program ๐
๐ธ SYNOPSIS ๐ธ
lpc [command [argument ...]]
๐ DESCRIPTION ๐
okay so lpc is the thing the system administrator uses to run the whole line printer situation. no cap. for every single line printer you've got configured in /etc/printcap, lpc can do all of this:
- disable or enable a printer,
- disable or enable a printer's spooling queue,
- rearrange the order of jobs in a spooling queue,
- find the status of printers, and their associated spooling queues and printer daemons.
so iconic honestly.
If you run it with no arguments at all, lpc will just sit there and prompt you for commands from the standard input. main character energy. but if you do pass arguments, lpc treats the first one as a command and the rest as parameters for that command. and yes bestie, the standard input can be redirected, which makes lpc read its commands from a file. very demure, very mindful.
Commands can be abbreviated! (short queen behavior ๐) here's the full list of recognized commands:
? [command ...]help [command ...]โ Print a short description of each command specified in the argument list. or, if you gave it no argument at all, it just prints the list of the recognized commands. it's giving built-in cheat sheet โจabort { all | printer }โ Immediately terminate an active spooling daemon on the local host, and then disable printing for the specified printers. disabling printing is what stops new daemons from being started bylpr(1). so yeah, it's a hard stop ๐ญclean { all | printer }โ Remove any temporary files, data files, and control files that cannot be printed (i.e., ones that don't form a complete printer job) from the specified printer queue(s) on the local machine. cleaning out the leftovers, periodt ๐งdisable { all | printer }โ Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue bylpr(1). ๐ซdown { all | printer } message [...]โ Turn the specified printer queue off, disable printing, and put message in the printer status file. the message does not need to be quoted โ the remaining arguments are treated likeecho(1). this is normally used to take a printer down and let users know why.lpq(1)will indicate the printer is down and print the status message. communicating, bestie ๐ฌenable { all | printer }โ Enable spooling on the local queue for the listed printers. This will allowlpr(1)to put new jobs in the spool queue. we love a comeback story ๐exitquitโ Exit fromlpc. bye bestie ๐restart { all | printer }โ Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly, leaving jobs in the queue.lpq(1)will report that there is no daemon present when this condition occurs. And if the user is the superuser, it tries to abort the current daemon first (i.e., kill and restart a stuck daemon). glow-up via violence ๐start { all | printer }โ Enable printing and start a spooling daemon for the listed printers. ๐status { all | printer }โ Display the status of daemons and queues on the local machine. the vibe check ๐stop { all | printer }โ Stop a spooling daemon after the current job completes and disable printing. finishing the sentence first, so polite ๐topq printer [ jobnum ... ] [ user ... ]โ Place the jobs in the order listed at the top of the printer queue. queue-jumping but make it authorized ๐up { all | printer }โ Enable everything and start a new printer daemon. Undoes the effects ofdown. the redemption arc โจ
๐ฆ FILES ๐ฆ
/etc/printcapโ printer description file/var/spool/output/*โ spool directories/var/spool/output/*/lockโ lock file for queue control
๐ฅ DIAGNOSTICS ๐ฅ
?Ambiguous commandโ Abbreviation matches more than one command. can't decide? then no. ๐ญ?Invalid commandโ No match was found. literally nothing. ๐?Privileged commandโ You must be a member of group โoperatorโ or user โrootโ to execute this command. sorry bestie, this one's above your pay grade ๐ซ๐
๐ SEE ALSO ๐
lpq(1), lpr(1), lprm(1), printcap(5), lpd(8)
๐ HISTORY ๐
The lpc command appeared in 4.2BSD. an elder. a legend. we stan a historical icon ๐ซถ
and that's the whole page, bestie!! this one came from Debian and it's dated May 31, 2007 โ yeah she's vintage, but she still ate ๐ โจ๐
๐ฆ where this page comes from
- debian bookworm: lpr 1:2008.05.17.3+nmu1
- debian trixie: lpr 1:2008.05.17.3+nmu3.1 ยท BSD-3-Clause
- ubuntu jammy: lpr 1:2008.05.17.3+nmu1
- ubuntu noble: lpr 1:2008.05.17.3+nmu1
- ubuntu questing: lpr 1:2008.05.17.3+nmu3.1
- ubuntu resolute: lpr 1:2008.05.17.4 ยท BSD-3-Clause
- ubuntu stonking: lpr 1:2008.05.17.4 ยท BSD-3-Clause
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms