Ubuntu Server: Nano: Go to End of the File Tips, Tricks and Tutorials 19 MAY 2014

I use GNU nano as my default text editor when working on my Ubuntu Server installs, primarily for its relative ease of use (well, at least compared to VIM that is). I often encounter files (particularly log files) which contain a ridiculous number of lines and so it is useful to know how to jump straight to the end of the file, hence this note to myself here.

The shortcut to jump to the bottom of the file is:

'Ctrl' + '-' ...followed by 'Ctrl' + 'v'

So the press sequence is first Ctrl then Hyphen/Underscore and when prompted to “enter line number, column number”, follow with a Ctrl and ‘v’.

Interestingly enough, to achieve the opposite of this, in other words jump to the top of the file, substitute the [Ctrl + v] for [Ctrl + y]:

'Ctrl' + '-' ...followed by 'Ctrl' + 'y'

And that is all there is to it – quick and easy!

ubuntu linux nano editor screenshot

Related Link: GNU nano

Related Posts:

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don't have time for myself any more.