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!

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

Piers FC
Piers FC
10,402 Points

how do I save a txt document I have changed in the console? i'm currently doing console foundation

In order to save a text document you have altered in the console, I believe you press ctrlO but what do you press after that to save it?

1 Answer


For exemple To édit à file in à Shell that existe you CAN use nano nano myFileToOpen.txt if à file Does ont exists you create it and édit at thé same Time with

nano myFile.txt

After you changes What is inside thé file , do Ctrl + x and then To confirm thé file To BE savez Ctrl + y

Hope this Will help