Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional note on saving file in Nano #610

Open
kfayesawyer opened this issue Apr 16, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@kfayesawyer
Copy link

commented Apr 16, 2019

In going through 4 - Tracking Changes, I hit a snag after typing my first line in Nano. The lesson says:

"Type the text below into the mars.txt file:

Cold and dry, but everything is my favorite color
mars.txt now contains a single line, which we can see by running:
$ ls
mars.txt
$ cat mars.txt
Cold and dry, but everything is my favorite color"

It's not explicit that you have to save and exit the file in order to run the next command. I'm happy to submit a pull request to fix it, if it's not too pedantic!

@tkphd

This comment has been minimized.

Copy link
Contributor

commented Apr 16, 2019

Using a command-line text editor, like Nano, it's impossible to get the prompt $ that allows you to type the next command, unless you first exit: the text editor occupies the entire terminal. However, updating the lesson to reflect that you have to save the file before you can run the next command might be helpful to those who are using a text editor that is not in the terminal, perhaps as a GUI or separate terminal application.

When teaching this lesson, I'm usually slow and careful to say, "I've opened nano to edit mars.txt... Now I'm typing in some details... then pressing -- look along the bottom, it's Ctrl+X to exit, then Y to save... Press enter to keep the file name... Now we're back to the terminal."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.