To save changes in Nano, follow these steps:
- Press
Ctrl + O: This command writes (saves) the changes to the file. - Press
Enter: Confirm the filename if prompted (it usually defaults to the current file). - Press
Ctrl + X: This command exits Nano.
These steps will save your changes and close the editor. If you want to exit without saving, you can press Ctrl + X and then choose not to save when prompted.
