University of Virginia Department of
    Computer Science

BASIC PRINT COMMANDS: A Synopsis

UNIX provides two ways of printing. One way is a little fancier, but can print only text files.

lpr
form: lpr -p[printer_name] file_name
Basic way of printing named file to named printer. The file can be either a text file or a postscript file. Note that no space can appear between "-p" and the printer name.

enscript
form: enscript -p[printer_name] file_name
This command provides a fancier way to print text files. Enscript will fit two pages on the same page, and print the file name and its date of last modification on a header. Again, no space can appear between "-p" and the printer name.

See Also