Solaris Advanced User's Guide

Printing a File

After you quit a vi file, you can print the file with the following command:

$ lp filename

In this example, filename is the name of the vi file to be printed. This command prints the file to your default printer. The file is printed without any formatting, line for line, just as it appears on the screen. See Chapter 8, Using Printers for more information on printer commands.