for a TeX file, or
for a LaTeX file. You may well get an error message at this point. If so, type ``h'' to get some help on what the error message means, and ``x'' to exit the tex or latex program. Edit your document to correct the mistake, and then try converting it again, until tex or latex runs without errors.
This will pop up a window with your formatted document in it. The ampersand on the end of the command means that it runs in the background, so you can type other commands without quitting xdvi. It is a good idea to keep the xdvi window iconised (minimised) while making corrections to your document, so that it doesn't try to display myfile.dvi while it is changing.
ps10 is the printer in the photocopier room; you could replace it by the name of another printer in the command above.