In the vi
or vim
text editor, you can jump to the end of a file using the following command:
G
Pressing G
will move the cursor to the last line of the file. If you want to move to a specific line number, you can type nG
, where n
is the line number you want to go to. For example, to go to line 100, you would type 100G
.
Note that the vi
and vim
text editor have a number of other commands for moving around and editing text. If you’re new to these editors, you may want to spend some time learning the basic commands and how to use them effectively.