Page 1 of 1

How to save terminal code changes?

Posted: Thu Jul 19, 2012 11:15 pm
by eiger3970
Hi, I'm a Linux Mint 13 Maya noob as you can tell from my stupid question.

I've just edited some sftp code as per http://www.youtube.com/watch?v=b0bgpCQPqpk
I don't know how to save the changes?
I checked:
Google
Linux Mint forum
Terminal command reference: http://community.linuxmint.com/tutorial/view/244

At 3'16" the tutorial on sftp saves the file, but I can't see what keyboard tricks are being actioned.

Appreciate any help.

Re: How to save terminal code changes?

Posted: Fri Jul 20, 2012 6:45 am
by xenopeek
This should probably find help here, so moving it.

Re: How to save terminal code changes?

Posted: Fri Jul 20, 2012 8:17 am
by Habitual

Re: How to save terminal code changes?

Posted: Sun Jul 22, 2012 6:14 am
by Pilosopong Tasyo
eiger3970 wrote:I don't know how to save the changes? ... At 3'16" the tutorial on sftp saves the file, but I can't see what keyboard tricks are being actioned.
It is not a keyboard trick, but rather a keyboard shortcut; a convention used in lieu of using the mouse to click a sequence of menus that results in the same action.

Just like most (if not all) editing applications, when you attempt to exit the program without saving the changes first, you'll be prompted if you want to save the changes. The bottom portion of nano (where you see the lines with control commands -- as prefixed with the caret symbol) in the video already gave you the clue what keyboard sequence to press in order to do an action.

Ergo, pressing ^X (whenever you see sequences like these, it means you press and hold the [Ctrl] aka "Control" button while pressing the letter in the said sequence) will give you the same result as what's shown in the video.