A Brief Tutorial on How to Undo in Nano Editor
How to Undo in Nano Editor?
You can use the following shortcut keys in nano to undo or redo:
Alt + U is used to undo anything in the nano editor.
Alt + E is used to redo anything in the nano editor.
So, now we know that we can easily undo or redo anything in the nano editor using the above shortcut keys. But remember, once you save your file, you cannot undo it again and retrieve the lines back. So before saving, if you need to retrieve the lines back, use the undo option