Introduction to Nano
In this step, you will get familiar with the basics of the nano text editor by learning how to create, open, edit, and save a text file.
Tasks
- Create a file using nano.
- Add a new line of text to the file.
- Save and exit the file.
Requirements
- The working directory is
/home/labex/project
.
- Create file named
example.txt
using nano.
- Add the following content to the file:
In the floating world, where skies embrace,
A sky balloon pilot, in the boundless space.
With nano in hand, through clouds, we steer,
Editing tales of the world, crystal clear.
Example
You create file example.txt
using nano, append new content, and then save the changes and exit the editor.