To save and exit the nano text editor in Linux, follow these steps:
- Press
Ctrl + Oto save the changes. You will be prompted to confirm the file name. - Press
Enterto confirm the file name and save the file. - Press
Ctrl + Xto exit the nano editor.
This will save your changes and close the editor.
