Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - Saving a File being edited in GNU Nano 2.2.4 [closed]

Tags:

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.

like image 983
binary101 Avatar asked Dec 27 '12 16:12

binary101


1 Answers

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.

like image 88
favoretti Avatar answered Sep 19 '22 00:09

favoretti