You can type a number before the command to move the cursor backward that number of screens. You can type a number before the command to move the cursor the specified number of characters. You can type a number before the command to move the cursor the specified number of characters. You can type a number before the command to move the cursor the specified number of lines. You can type a number before the command to move the cursor the specified number of lines.
G goes to the desired line number.
For example, 25G will move the cursor to line 25. If you do not type a number, the cursor will go to the end of the file. O moves the cursor to the first character on the current line. M moves the cursor to the middle line of the screen. L moves the cursor to the last line of the screen.