Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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