Go to End of a File using nano Text Editor in Linux

Go to End of a File using nano Text Editor in Linux

The nano is a text editor that comes pre-installed in most Linux distributions. When working with text file, it's common to go to the end of a file. This tutorial shows to do that using nano text editor in Linux.

Method 1 - ALT + /

Open a text file using nano:

nano /var/log/auth.log

When file was opened, the cursor is pointing to the beginning of a file. Press ALT + / shortcut combination to go to the end of a file.

Method 2 - CTRL + W and CTRL + V

Using the nano open a text file. When it was opened, press CTRL + W shortcut combination. It will open search prompt at the end of a file. Now press CTRL + V combination to go to the end of a file.

Leave a Comment

Cancel reply

Your email address will not be published.