Exit the nano terminal editor?

Answered
nick asked this question 1 year, 2 months ago
nick on Jul 5, 2022

How do I exit the nano editor that's used to make changes to files via the command line/terminal?

There's a series of shortcut commands that should do this, but I can't seem to figure it out.

Ideally, I'd like to save and then close the file.

2 suggested answers
rsingh on Jul 21, 2022

control + c

0 replies
coderguy on Aug 6, 2022

To close your nano editor: ctrl+x.

To save and then close: ctrl + x, then y, then enter.

0 replies
Answered