how to save the file in nano editor code example
Example 1: save file in nano
Ctrl-o
# Then press Enter
Example 2: Create and edit a new file nano
# Create and edit a new file using nano
sudo nano "fileName"
Ctrl-o
# Then press Enter
# Create and edit a new file using nano
sudo nano "fileName"