18 C
Jaipur
Saturday, December 5, 2020

How do I quit Nano? – Linux Hint

Must read

Top Christmas gifts for PlayStation gamers: from the PS5 to cool merchandise

Struggling to think of the best Christmas gifts for PlayStation gamers? When you eventually get a wish list from your family or friends that...

mobile Internet: US House Democrats adopt mobile internet voting for leadership contests – Latest News

US lawmakers used a mobile phone app over the last two weeks to remotely cast votes for the first time, according to technologists and...

Thanks PS5 and Xbox Series X for making ray tracing cool

When the Nvidia GeForce RTX 2080 and RTX 2080 Ti made their debut way back at Gamescom 2018, the way Nvidia CEO Jensen Huang...

Spider-Man: Miles Morales has the most authentic character of 2020

Earth-616 is at peak Spidey fandom. After the successful integration of bringing Spider-Man into the ever-expanding MCU, the character was then reinvigorated in video...

Nano is a user-friendly text editor that provides an ease to the new users than other editors. Users can start work on Nano without getting any training. Nano text editor is not similar to the most popular vim editor. It doesn’t have fancy changing modes that have vim. It works on simple keyboard shortcut keys. So, just hold the Ctrl key and press any key with it to perform an action.

When you have launched a nano editor by typing the ‘Nano’ command on the terminal. You will see the following shortcuts at the bottom of the displaying nano window.

To quit nano ^X will be displayed on nano which is also highlighted in the following screenshot:

In the above image, the carrot ^ symbol in nano represents the use of the Ctrl key. If you are looking for how to exit or quit Nano then, you will press ‘Ctrl + x’ keys with the combination. While working on nano, you will press F2 or ^X means Ctrl + X to exit from the current buffer or quit nano. After that, you will be prompted to save the current file press ‘y’ and if you don’t want to make any changes then press ‘n’. You can also press Ctrl+o to save this file. Then, you need to enter the file name that you want to keep. You can also see this in the following screenshot:

Example

Let’s take an example of how to quit or exit from nano. We are working on a bash file my_file.sh in nano. Suddenly, you want to close the nano editor due to any reason. To quit nano, you will just press F2 or Ctrl + X keys. You will be asked to press ‘y’ to save the current file, or in case of without saving you will press n to exit from nano.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Top Christmas gifts for PlayStation gamers: from the PS5 to cool merchandise

Struggling to think of the best Christmas gifts for PlayStation gamers? When you eventually get a wish list from your family or friends that...

mobile Internet: US House Democrats adopt mobile internet voting for leadership contests – Latest News

US lawmakers used a mobile phone app over the last two weeks to remotely cast votes for the first time, according to technologists and...

Thanks PS5 and Xbox Series X for making ray tracing cool

When the Nvidia GeForce RTX 2080 and RTX 2080 Ti made their debut way back at Gamescom 2018, the way Nvidia CEO Jensen Huang...

Spider-Man: Miles Morales has the most authentic character of 2020

Earth-616 is at peak Spidey fandom. After the successful integration of bringing Spider-Man into the ever-expanding MCU, the character was then reinvigorated in video...

Apple is replacing unresponsive iPhone 11 screens for free

If your iPhone 11 screen has mysteriously stopped responding to your touches to some degree then Apple will replace the display free of charge,...