Recall & Review
beginner
What is the nano text editor used for?
Nano is a simple, easy-to-use text editor in the Linux command line. It helps you create and edit text files quickly without complex commands.
Click to reveal answer
beginner
How do you open a file named
notes.txt with nano?Type
nano notes.txt in the terminal and press Enter. This opens the file in nano for editing.Click to reveal answer
beginner
What key combination saves your changes in nano?
Press Ctrl + O (the letter O) to write out or save the file. Then press Enter to confirm the file name.
Click to reveal answer
beginner
How do you exit nano after editing?
Press Ctrl + X to exit. If you have unsaved changes, nano will ask if you want to save before quitting.
Click to reveal answer
intermediate
What does Ctrl + K do in nano?
It cuts (removes) the current line and saves it to a buffer, so you can paste it somewhere else with Ctrl + U.
Click to reveal answer
Which command opens a file named
example.txt in nano?✗ Incorrect
The correct command to open a file in nano is
nano filename. Other commands are for different editors or invalid.How do you save changes in nano?
✗ Incorrect
In nano, Ctrl + O saves (writes out) the file. Ctrl + S does not save in nano.
What happens if you press Ctrl + X with unsaved changes?
✗ Incorrect
Nano will prompt you to save your changes before exiting to prevent accidental data loss.
Which key combination cuts the current line in nano?
✗ Incorrect
Ctrl + K cuts the current line in nano. Ctrl + C displays the cursor position, Ctrl + X exits, and Ctrl + V moves to the next page.
How do you paste a cut line in nano?
✗ Incorrect
Use Ctrl + U to paste the line you cut with Ctrl + K in nano.
Explain how to open, edit, save, and exit a file using nano.
Think about the basic workflow of editing a file in nano.
You got /5 concepts.
Describe how to cut and paste lines inside nano.
Focus on the key commands for moving lines around.
You got /4 concepts.