25

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.

Martin Thorsen Ranang
  • 2,394
  • 1
  • 28
  • 43
binary101
  • 1,013
  • 3
  • 23
  • 34

1 Answers1

49

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.

favoretti
  • 29,299
  • 4
  • 48
  • 61