27 C
Jaipur
Sunday, October 18, 2020

How do you get to the Last Line in Nano? – Linux Hint

Must read

How Apple Developed ‘Ceramic Shield’ Glass for the iPhone 12

Apple, with the launch of the new iPhone 12 models, introduced a new protective layer for the OLED displays of the current and future...

Microsoft’s New Image Captioning AI Is as Accurate as Humans

Since researchers started working on artificial intelligence (AI), one of the primary goals has always been an advanced image captioning system. Many companies are...

Apple Working on an iPhone with a Slide-out Display

Over the past year or so, we have seen a shift in smartphone design and phone makers are now experimenting with foldable, swivel, or...

​Amazon Great Indian Festival sale: 12 phones from Apple, Xiaomi, Samsung and others available at ‘lowest-ever’ price

Amazon’s biggest annual festival sale is live. The 7-day sale has deals and discounts on a range of products -- fashion, grocery, electronics, household...

While working with the nano editor, you might want to jump to the last line of a file without having to scroll through the entire file. There are two methods of doing this which are stated below:

Method # 1: Using the “Alt+ /” Shortcut Combination:

The first thing that you need to do is to launch a file with the nano editor using the terminal command shown below:

You can provide any file name instead of Testing.txt according to the file that you want to open.

Once your file will open with the nano editor, the cursor will be pointing at the beginning of the file. Just press “Alt+ /” (Alt+ Forward Slash) and you will notice that your cursor has shifted to the end of the last line of your file as shown in the following image:

Method # 2: Using the “Ctrl+ W” and “Ctrl+ V” Shortcut Combinations:

Open any desired file with nano editor through the command stated above. Once your file is opened in the nano editor, press “Ctrl+ W”. Doing this will make a Search prompt to appear at the end of your file as shown in the image below:

Now press “Ctrl+ V” after that Search prompt appears and you will notice that your cursor is now pointing to the end of the last line of your file as shown in the following image:

These methods prove to be helpful when you are working with large files and you quickly want to navigate to the end of the file or the last line of the file. These files can either be text files or any other type of file. The methods of navigating to the last line of any file in the nano editor will remain the same.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How Apple Developed ‘Ceramic Shield’ Glass for the iPhone 12

Apple, with the launch of the new iPhone 12 models, introduced a new protective layer for the OLED displays of the current and future...

Microsoft’s New Image Captioning AI Is as Accurate as Humans

Since researchers started working on artificial intelligence (AI), one of the primary goals has always been an advanced image captioning system. Many companies are...

Apple Working on an iPhone with a Slide-out Display

Over the past year or so, we have seen a shift in smartphone design and phone makers are now experimenting with foldable, swivel, or...

​Amazon Great Indian Festival sale: 12 phones from Apple, Xiaomi, Samsung and others available at ‘lowest-ever’ price

Amazon’s biggest annual festival sale is live. The 7-day sale has deals and discounts on a range of products -- fashion, grocery, electronics, household...

Amazon Great Indian Festival sale: 6 fitness bands you can buy under Rs 5,000

Amazon Great Indian Festival sale: 6 fitness bands you can buy under Rs 5,000 Source link