Category Archives: Nano

Handy Nano Commands

nano-editoI use a Nano a lot when editing files on my Ubuntu web servers, so having a quick "cheatsheet" on some Nano commands is "handy" 🙂

As I use a Mac, the ^ symbol represents the CONTROL key, not sure what the equivalent Windows keystrokes would be.

^x - Close the current file buffer / Exit from nano
^o - Save
^r - Insert another file into this one
^w - Search for a string or regular expression
^w^v - Move to end of file
^_ - Goto line number
^\ - Replace a string or regular expression
^a - Move to beginning of current line-break
^e - Move to end of current line