Python - Saving a File being edited in GNU Nano 2.2.4

binary101 picture binary101 · Dec 27, 2012 · Viewed 48.4k times · Source

I'm very new to programming and playing around with a Raspberry Pi and following tutorials on Youtube.

I have opened a file in GNU Nano 2.2.6 e.g: nano my_File.py and changed some of the data.

I'm struggling on how to overwrite the file (or save it) because when i run it in a new window it uses the original data...

Thanks.

Answer

favoretti picture favoretti · Dec 27, 2012

If you press Ctrl-X, for exit, it will ask you whether you want to save the file. Ctrl-O is for saving file without exiting the editor.

Ctrl-G is for help on key combinations.