next up previous contents
Next: Monitoring Printing Up: Printing Previous: Printing

Printing Files

To print a file we use the lpr command. To print a file to the default printer we can do the following:

$lpr our_file

If we want the printout on a different printer, we can use the -P flag and specify another printer (eg. raw):

$lpr -Praw our_file

The lpr command can also take input from a pipe:

$ls -lF | lpr

This will print the contents of the directory. The last option we have for the lpr command, is to take our input from the standard input:

This is just a test print.

Now that we have submitted our print jobs, how can we check on their progress?

Mark O. Stitson
Wed Sep 25 10:45:32 BST 1996