Solaris Advanced User's Guide

Going to a Specific Line

To go to the last line of an open file, type G. To return to the first line of the file, type 1G.

You can go to any other line by typing its number followed by G.

For example, suppose that you quit the file paint while editing line 51. You can access that line by opening the file and typing 51G.