Nano is a very simple text editor built in to the CLI. To edit a file with nano (for example yourfile.sh), use nano yourfile.sh.
| Command | Description |
|---|---|
| Ctrl + O | save the file - prompts you to confirm the filename to write the changes to. Press Enter to confirm. |
| Ctrl + X | save and exit - also prompts you to confirm, press Enter. |