Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Git Basics Branches Beginning to Branch

YI JIANG
YI JIANG
3,424 Points

cantgetoutafternano

iwritectrlxnotworking

3 Answers

Sue Dough
Sue Dough
35,800 Points

Control X - This will put you in exit mode, if theres no changes it will exit immediately. If it doesn't then follow next steps:

Y - This will save the work. You can also press n to not save. If you do save then follow the next step:

Enter - A prompt will ask about the name of the file. If you press enter the name won't change. You can also change it by typing the name you want.

So it usally goes like this when all the commands are put together and you want to save an existing file:

Control X, Y, ENTER

Justin Molyneaux
Justin Molyneaux
13,329 Points

Hit the "Q" Key to completely exit out of nano.

Sue Dough
Sue Dough
35,800 Points

Please explain your answer. Have you actually tried it? What happens?

David Bath
David Bath
25,940 Points

You are correct Sue, I must have been thinking of a different program. Where were you 27 days ago?