How to save a file using nano
Solution 1:
Ctrl + X will quit the editor and you will be asked if you want to save your changes. If you do, press Y for Yes
.
Ctrl + O should also work, since that means to save the file, but you won't be asked "Save modifier buffer ? " because you already told nano
to save.
Solution 2:
He save the changes made through Ctrl+O which actually means Write Out while editing a file through nano
.
Where ^
means Ctrl.
Note : You'll also have to press Enter to overwrite the existing file if it exists.
Solution 3:
With the image shown right now you can save just pressing "Y" for yes. To know what key combinations you need to do just check the White square besides the action, which are as follow:
- Y: yes
- N: no
- Ctrl + C: Cancel