next up previous
Next: Comparing and Concatenating Files Up: USING UNIX Previous: Looking at the Contents

Printing Files (lp, lpstat, cancel)

To print a text file you do lp filename. To check the files waiting to be printed you type lpstat. This will also tell you if something is wrong with the printer or if it is out of paper.

If you want to cancel a printing job before it is printed, first type lpstat. Under the heading Job you will find a number for your printing job. If this number is 116 say, you remove the job by typing cancel 116.