• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL



lpr Sends a job to the printer.
lpr [-P<printer>] [-#<num>] [-C <class>] [-J <job>] [-T <title>] [-U
<user>] [-i [<numcols>]] [-1234<font>] [-w<num>] [-cdfglnptv] <file1>
									<file2> ...

lpr creates a printer job in a spooling area to be printed when facilities become available. A print job consists of a control file and one or more data files, which are copies of the specified files. lpr uses a spooling daemon, lpd, to print the files or to send the files to a remote host if the printer is on a remote host.
-c Assumes that files contain data produced by cifplot(1).
-d Assumes that files contain data from tex (DVI format from Stanford).
-f Uses a filter that interprets the first character of each line as a standard FORTRAN carriage control character.
-g Assumes that files contain standard plot data as produced by plot routines.
-l Uses a filter that allows control characters to be printed and suppresses page breaks.
-n Assumes that files are assumed to contain data from ditroff (device independent troff).
-p Uses pr(1) to format the files (equivalent to print).
-t Assumes that files contain data from troff(1).
-v Assumes that files contain a raster image for devices like Benson Varian.
The following options apply to the handling of the print job:
-P<printer> Forces output to a specific printer. Normally the default printer for the site is used, or the value of the environment variable PRINTER is used.
-h Suppresses the printing of a banner page.
-m Sends mail upon completion.
-r Removes the file on completion of the spooling or upon completion of printing (with the -s option).
-s Uses symbolic links. Usually files are copied to the spool directory. The -s option uses a symbolic link to the data files rather than copying them to the spool directory. Files sent to the printer in this manner should not be modified or removed until they are printed.
The following options apply to copies, the page display, and headers:
-#<num> Prints the number of copies specified by <num>.
-[1234]<font> Specifies a <font> to be mounted on font position i. The daemon constructs a .railmag file referencing the font pathname.
-C <class> Specifies the job classification to be used on the banner page. Replaces the name returned by hostname(1) with <class>.
-J <job> Specifies the job name to be used on the banner page. Normally, the first filename is used.
-T <title> Uses <title> for pr(1) instead of the filename.
-U <user> Specifies <user> as the name to print on the banner page. It is only honored if the real user ID is daemon, and is intended for instances in which print filters requeue jobs.
-i [<numcols>] Indents the output. If <numcols> is specified, it prints<numcols> of blank spaces before each line. Otherwise, eight characters are printed.
-w<num> Uses <num> as the page width for pr(1).



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint