189 lines · 3.3 KB · Text
RawDownload
.TH LP 1 .SH NAMElp \- printer output.SH SYNOPSIS.B lp[.I option ...][.I file ...].SH DESCRIPTION.I Lpis a generalized output printing service.It can be used to queue files for printing,check a queue, or kill jobs in a queue.The options are:.TF -d\ \fIde\fP.TP.BI -d " dest"Select the destination printer.If.I destis.LR ? ,list the currently available printers.In the absence of.LR -d ,the destination is taken from the environment variable.BR LPDEST .Destination.L stdoutis the standard output.Destination.L safariis.L /dev/lpt1dataline printer port on a 386 machine, assumedto be connected to a PostScript printer.Destinations .L hpdeskjetand.L bjc240lare also.L /dev/lpt1databut assumed to be connected to an HP Deskjet 670 orCanon BJC-240..I Lpcan print to any printer supported byGhostscript using syntax.BI gs!devicewhere.I deviceis a Ghostscript output device.See.IR gs (1)and the .L canonbjc240l entry in.LR /sys/lib/lp/devices ..TP.B -kKill the job(s) given as subsequent arguments, instead of file names,for the given destination..TP.BI -p " proc"The given processor is invoked.The default processor is.LR generic ,which tries to do the right thing for regular text, .IR troff (1)output, or .IR tex (1)output.If no processing is desired.L noprocmay be specified..TP.B -qPrint the queue for the given destination.For some devices, include printer status..TP.B -RStops and restarts the printer daemon.If the printer is wedged, it is often useful to cycle the power on the printerbefore running this command..PD.PPThe remaining options may be used to affect the output at a given device.These options may not be applicable to all devices..TF "-p\ \fIpr\fP".TP.BI -c " n"Print.I ncopies..TP.BI -f " font"Set the font (default.LR CW.11 )..TP.BI -HSuppress printing of header page..TP.BI -i " n"Select paper input tray..I nmay be a number 0-9, the word.L manfor the manual feed slot, and/or.L simplexor.L duplexto get single or double sided output.Multiple input tray options may be specified if they areseparated by commas..TP.BI -l " n"Set the number of lines per page to.IR n ..TP.B -LPrint pages in landscape mode (i.e. turned 90 degrees)..TP.BI -m " v"Set magnification to.IR v ..TP.BI -n " n"Print.I nlogical pages per physical page..TP.BI -o " list"Print only pages whose page numbers appear inthe comma-separated.I listof numbers and ranges.A range.IB n - mmeans pages.I nthrough.IR m ;a range.BI - nmeans from the beginning to page.IR n ;a range.IB n -means from page.I nto the end. .TP.B -rReverse the order of page printing..TP.BI -x " v"Set the horizontaloffset of the print image, measured in inches..TP.BI -y " v"Set the verticaloffset of the print image, measured in inches..SH EXAMPLES.TP 0.Leqn paper | troff -ms | lp -dsafariTypeset and print a paper containing equations..TP.Lpr -l100 file | lp -l100 -fCW.8Print a file in a small font at 100 lines per page..TP.Llp -dstdout /dev/windows/3/window > doc.psConvert an image to a postscript file..SH SOURCE.nf.B /rc/bin/lp.B /sys/src/cmd/lp.SH SEE ALSO.IR lp (8).brP. Glick,``A Guide to the Lp Printer Spooler''..SH BUGSNot all options work with all output devices.Any user can kill any job.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t