📄 lpc.8
字号:
.TH lpc 8.SH Namelpc \- line printer control program.SH Syntax.B /etc/lpc[.I command[.I argument...] ].SH Description.NXR "lpc program".NXS "line printer control program" "lpc program".NXAM "lpc program" "lpq program"The.PN lpcprogram is used by the system administrator to control theoperation of the line printer system.For each line printer with an entry in the.PN /etc/printcapfile,.PN lpcmay be used to start/stop several different functions..PPWithout any arguments,.PN lpcprompts for commands from the standard input.If arguments are supplied,.PN lpcinterprets the first argument as a command and the remainingarguments as parameters to the command.The standard input may be redirected causing.PN lpcto read commands from file.The commands and their parameters are shown below.Commands may be abbreviated..NXR "lpc program" "commands".PP? [\fI \fIcommand...\fR ].br\fBhelp\fR [ \fIcommand...\fR ].NXR "help command (lpc)".IPPrints a short description of each command specified in the argument list,or, if no arguments are given, a list of the recognized commands..PP\fBabort\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "abort command (lpc)".IPTerminates an active spooling daemon on the local host immediately andthen disables printing (preventing new daemons from being started by.PN lprfor the specified printers..PP\fBclean\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "clean command (lpc)".IPRemoves all files beginning with ``cf'', ``tf'', or ``df''from the specified printer queue(s) on the local machine..PP\fBenable\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "enable command (lpc)".IPEnables spooling on the local queue for the listed printers.This will allow.PN lprto put new jobs in the spool queue..PP\fBexit\fR.br\fBquit\bR.IPExits from.PN lpc ..PP\fBdisablefR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "exit command (lpc)".NXR "quit command (lpc)".NXR "disable command (lpc)".IPTurns off the specified printer queues.This prevents new printer jobs from being entered into the queue by.PN lpr ..PP\fBrestart\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "restart command (lpc)".IPAttempts to start a new printer daemon.This is useful when some abnormal condition causes the daemon todie unexpectedly leaving jobs in the queue.The.PN lpqcommandwill report that there is no daemon present when this condition occurs..PP\fBstart\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "start command (lpc)".IPEnables printing and starts a spooling daemon for the listed printers.Thiscommand also creates an .PN initfile in the printer's spool directory.The.PN initfile can be used by filters as an initialization flag..PP\fBstatus\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "status command (lpc)".IPDisplays the status of daemons and queues on the local machine..PP\fBstop\fR [ \fIall\fR ] [ \fIprinter...\fR ].NXR "stop command (lpc)".IPStops a spooling daemon after the current job completes and disablesprinting..PP\fBtopq printer\fR [ \fIjobnum...\fR ] [ \fIuser...\fR ].NXR "topq printer command (lpc)".IPPlaces the jobs in the order listed at the top of the printer queue..SH Diagnostics.NXR "lpq program" "diagnostics".B "?Ambiguous command".brAbbreviation matches more than on command..PP.B "?Invalid command".brNo match was found..PP.B "?Privileged command".brThe command can only be executed by root..SH Files.TP 20.PN /etc/printcapPrinter description file.TP.PN /usr/spool/*Spool directories.TP.PN /usr/spool/*/lockLock file for queue control.SH See Alsolpq(1), lpr(1), lprm(1), printcap(5), lpd(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -