CSE 111, Fall 2000

HOW TO PRINT FROM UNIX

Last Update: 29 September 2000

Note: NEW material is highlighted.

Note: In this document, the Unix prompt is indicated as: >

  1. In general, to print from Unix, type:

    >lpr filename <return>

    If you do that, your output will be sent to the Computing Center.

  2. If you want to send your output to a different Unix printer, type:

    >lpr -Pprinter filename <return>

    where printer is one of the following:

    Name of PrinterLocation
    comxerox Computing Center, 2nd floor
    comxps Computing Center, 2nd floor
    (for postscript files only)*
    bell 101 Bell Hall
    lockwood Lockwood Library, 2nd floor
    capen UGL, Capen Hall, 1st floor
    dfn 206 Diefendorf Hall
    * If you don't know what postscript is, don't worry, & don't use this printer :-)

  3. For example, to send a printout named myprogram.p to the Lockwood Library printer, you would type:

    >lpr -Plockwood myprogram.p <return>

  4. Note: The closest Unix printer to Park Hall is probably either Lockwood 2nd floor or UGL.

  5. Note: To see a list of the current waiting times for printers, type:

    >prstat <return>

  6. For more information, see the website "Printing"---and the links from that page---at http://www.cit.buffalo.edu/bridge/printing.html

To Move a File from Unix to Windows & Print from Windows

There is a way to move files from UBUnix to your Windows PC and then print at the local printer, but it involves several extra steps. For those of you who want to try it, here it is:

  1. Do:

    Start --> Programs --> Windows NT Explorer

  2. An Explorer window opens up with two sides.
    In the left window, select "Internet Neighborhood"

  3. In the right window, double-click on UBUnix

  4. In the UBUnix window that opens up, copy the file you want to print to "Nt_disk(U:)" in the left Explorer window.

    • The safest way to copy is to right-click on the file to be copied, move your mouse over to "Nt_disk(U:)" in the left Explorer window, and release. Then select "Copy" from the dialogue box.

  5. Close all windows.

  6. Do:

    Start --> Programs --> Microsoft Office --> Microsoft Word

  7. In Word, do:

    File --> Open

  8. At the bottom of the dialogue box, in the window labeled "Files of Type:", select "Text Files (*.txt)".

    • To do that, click on the down-arrow to open a window with a list of file types, and select "Text Files (*.txt)".

  9. In Word, do:

    File --> Print

NEW To Print a Unix Screen on a Windows Machine NEW

  1. If you're using CRT to access UBUnix,
        then an even easier way to print what's on your screen is to use the following sequence of menu selections:

      File -> Print -> Screen

    This will print whatever you see on your screen to your local printer, even at home.

  2. Note, however, that if a program you write is longer than one screenful, then you cannot use this method.

  3. But if the sample run of the program fits on a single screenful, then you can use this method.


    Copyright © 2000 by William J. Rapaport (rapaport@cse.buffalo.edu)
    file: 111/printing.29sp00.html