Follow MonoVM
on social networks
and stay updated
with our new posts.

instagram twitter linkedin Youtube facebook telegram
+370 5 205 5502

How to Move to the End of the Line in Nano Editor

In this short tutorial, we will be showing you how to move to the end of the line in Nano editor in Linux using keyboard shortcuts.

14 Dec, 21 by Antoniy Yushkevych 2 min Read

List of content you will read in this article:

You need to install nano to use its functionality and all the resources it is providing to you. Nano is usually enabled by default in most Linux distributions, but if it isn't, use the following commands to install it:

  • In the Debian/Ubuntu system, use the command: 

$ sudo apt install nano

  • In the CentOS/Fedora system, use the command :

$ yum install nano

If there is a huge text with many lines, it isn't easy to scroll down the path and go to the line's end. Nano provides a perfect solution for it. The following guide will tell you how to go to the end of the line in nano.


There are two methods by which you can perform the following task:

Using the "Alt and /" Keyboard Shortcut

The very first step is to open a document in the nano editor using the terminal command given below:

sudo nano xyz.txt

The cursor would point to the starting of the document when you open it with the nano editor. Use the "Alt and /" combination, and your cursor will shift to the end of the last line of your document.

Using "Ctrl and W" and "Ctrl and V"

Open any file in the nano editor using the given command:

sudo nano xyz.txt

Click "Ctrl and W" after the file has been open in the nano editor. This will evoke the Search option appearing at the end of the document.

After the Search option appears, press "Ctrl and V," and you'll find that your cursor has moved to the end of the last line of your document.


While dealing with large files, you can easily move to the end of the last line of the file. These approaches come in handy when you want to navigate to the end section of the file. Hence we can use any of the two methods shown in the document to navigate the last line of the file.

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at