...
To invoke nano to edit a new or existing file just type nano <filename>. For example:
Code Block | ||
---|---|---|
| ||
nano newfile.txt |
...
Once you've positioned the cursor where you want it, just type in your text.
To remove text:
- the backspace Backspace key deletes the character before before the cursor
- the delete Delete key, or Ctrl-d deletes the character after the cursor
- Ctrl-k deletes all text on the current line after the cursor
Once you're satisfied with your edits:
...