Once you have created and stored your files, you will probably need a paper copy of them to work with. The lpr command is used to print ASCII text or PostScript TM files to a printer.

When used without any options the lpr command will send the print job to the default printer(as specified by your system administrator). To select a printer other than the default, use the -P option.

Command Format

lpr [options] filename

Examples

Print the file blankets in your home directory to the default printer:

$ lpr ~/blankets
request id is printer 5si (1 file(s))
$
Here is how to use the -P option to specify another printer:

$ lpr -P upstairs ~/blankets
request capital p id is upstairs (1 file (s))
$