next up previous contents
Next: UNIX Text Editing (EMACS Up: UNIX Help and more Previous: UNIX File Handling

Printing from UNIX

  Each user should not waste paper and should only print when necessary.

To access the printers in the EDLAB use:

% lpr [options ..] [filespec..]

If no file names appear then the standard input is assumed. Normally the default printer is used, or the value of the environment variable PRINTER is used. It is possible to set the value of PRINTER, as one wishes with the setenv command (section on User Environment). However, the -P option may be used to force output to a specific printer. Other options are listed in the man page for lpr. Example:
% lpr -Pelprt2 myfile.txt



Paul A. Sihvonen-Binder
8/8/2014