nano is a simple text editor in the style of the Alpine Composer most commonly used as an alternative for Vi Editor.
To exit the nano command you need to first press Control + X keys, you will be displayed with a question at the bottom of the screen,
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES)?
YES
NO
If you want to same and exit the changes to the file, press key Y, else press N to exit without saving.

More Posts related to Linux,
- Terminal display next month Calendar
- How to change bash terminal prompt string and color
- How to exit from nano command
- How to Display content of a file in Terminal Screen?
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- 3 Commands to stop Nginx Server
- How to check file permissions for your file using Linux/Unix/macOS Terminal Command
- Create Hidden File or Directory using Shell Command
- bash: cls: command not found
- How to install python pip on Ubuntu using apt command
- The Date Command and its usage [Linux - Unix - macOS]
- SCP Copy all files from directory to Local Folder
- Create and write file in single Linux/macOS command
- Install OpenSSL on Linux/Ubuntu
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- Check SSH/OpenSSH version Command
- Execute .bin and .run file Ubuntu Linux
- What does apt-get update command does?
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 ways to clear screen on Linux Terminal
- How to backup a file in Linux/Unix
- How to quit or exit SFTP Prompt on Terminal
- How to use SCP Command to Copy Directory
- zsh hello world example
- How to remove/delete a directory in Linux/macOs
More Posts:
- How to resolve Failed to create interpreter PyCharm Error - Python
- Failed to load resource: net::ERR_CACHE_MISS PHP - PHP
- [Maven] Multiple annotations found at this line pom.xml CoreException, ArtifactResolutionException - Java
- [Fix] Steam: Friends Network Unreachable Error - HowTos
- Create Bootstrap carousel slider with Text - Bootstrap