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 Getting Started With Git Committing Changes

Exiting out of Nano

In the video it does not mention to use command 'T' to get back to the $ sign in the terminal window. I accidentally tried command T and it worked. How do you flip between the Nano text editor and get back to the command line after making changes?

1 Answer

Stone Preston
Stone Preston
42,016 Points

to open the nano text editor type (this will bring up an empty file)

$ nano

if you want to open a file in nano type

$ nano filename

to save changes to the file type control + 0 and type the name of the file youd like to save it as

to exit nano press control + x (if youve made changes and havent saved it will ask you to save your changes by pressing y or n)

James Barnett
James Barnett
39,199 Points

tl;dr -

  • ctrl + o = save file
  • ctrl + x = exit nano

more info: http://mintaka.sdsu.edu/reu/nano.html