Quick reference guide Linux

Previous Contents Index Next 

6. Printing

Please note that the printing environment described here is based on the LPRng package and differs from the standard lp (SysV) and lpr (BSD) environment described in the man pages.

a2ps [global_option[s]] [[file_option[s]] [file[s]]] [[file_option[s]] [file[s]]] ... PF
Formats an ASCII file for printing on a postscript printer. The most useful global_options to change the default behavior are:
-B Don't print page headers
-c cut long lines instead of folding them
-o file Print output to file (default is to $PRINTER)
-P printer Send output to printer
The most useful file_options to change the default behavior are:
-1 Print only one page per physical page (default 2)
-b text Use text instead of the file name in the page header
--borders=no Don't print page surrounding borders
-fn Changes font size to n (default 9 for portrait, 6.4 for landscape mode)
-Ln Print n lines per page. The font size is scaled accordingly
-p Print files in portrait mode -r Print files in landscape mode
 
cancel [-i] [job_ID[s]] [printer[s]] (not for Linux) UM
cancel -a [printer[s]]  
Cancel requests with given job_ID[s] or cancel the currently printing job on a given printer. The job_ID[s] have the form printer_name-request_number where request_number is obtained by lpstat. The second form cancels all your own print requests on given printer[s] or on all printers. Use lprm instead.  
lp [-c] [-dprinter] [-ofilter_options] [file[s]] UfM
Send requests to printer or to the default printer. With -c a copy of the file is made before printing (Useful for printing temporary or protected files). For a list of filter_options see lpr below.  
lpq [-l] [-Pprinter] [job_ID[s]] [username[s]] UM
Show the print spool queue (with -l in long format) (for printer)  
lpr [-Pprinter] [-Zfilter_options] [-h] [file[s]] UfM
Send requests to printer or to the default printer. The banner page gets suppressed with -h. The following filter_options are available:
a3tray a4tray ascii black
bindlong bindshort bw color
compressed debug dvi fixed
german hires h"title" iso1
landscape nobanner noheader portrait
postscript proportional raw simplex
transparent xq roff

Use simplex for single sided print, bindshort for landscape pages.
 
lprm [-Pprinter] [-] [job_ID[s]] U
Remove jobs from printer queue. To remove all your jobs use the - option.  
lpstat[-p printer[s]] (not for Linux) U
Show the print spool queue (for printer[s]). Use lpq instead.  
xv [-cmap -iconic] L
Versatile image display program. Can be used to produce and print screendumps. Use the Grab and Print buttons.  

Previous Contents Index Next