How do you edit a file using Nano?
Use
nano filename.txt to open or create a file, edit the text, press Ctrl + O to save, Enter to confirm, and Ctrl + X to exit.