How to save terminal code changes?

Forum rules
Before you post please read how to get help

How to save terminal code changes?

Postby eiger3970 on Thu Jul 19, 2012 11:15 pm

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.
My machine specs:
Linux Mint 16 MATE 64-bit.
Copyright (c) 1997-2011 GNOME developers.
2 x Intel(R) Pentium(R) CPU G850 @ 2.90GHz
12222MB (2146MB used)
1280x1024 pixels
ATI Radeon HD 5700 Series (It's the 5770 card)
eiger3970
Level 3
Level 3
 
Posts: 140
Joined: Thu Jul 19, 2012 9:48 am

Linux Mint is funded by ads and donations.
 

Re: How to save terminal code changes?

Postby xenopeek on Fri Jul 20, 2012 6:45 am

This should probably find help here, so moving it.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15284
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: How to save terminal code changes?

Postby Habitual on Fri Jul 20, 2012 8:17 am

What's a landing but a take off in reverse?
User avatar
Habitual
Level 8
Level 8
 
Posts: 2254
Joined: Sun Nov 21, 2010 8:31 pm
Location: LM17Q-Xfce

Re: How to save terminal code changes?

Postby Pilosopong Tasyo on Sun Jul 22, 2012 6:14 am

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.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1190
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest