Essential And Useful Nano and Pico Commands


opening nano   ->  nano -Kxu$  <filename> 
close/exit                        --> ctrl + x 
save                      --> ctrl + o 
search                   --> ctrl + w 
search forward         --> alt + w 
previous screen        --> ctrl + y 
next screen            --> ctrl + v 
undo                --> alt + u 
redo                --> alt + e 
copy/paste            --> ctrl+^,alt+^,ctrl+u 
cut/paste            --> ctrl+^,ctrl+k,ctrl+u 


Help text: 
The options for opening nano suggests: 

K (−−rebindkeypad) 
Interpret the numeric keypad keys so that they all work properly. You should only need to use this option if they dont, as mouse support wont work properly with this option enabled. 

x (−−nohelp) 
Disable help screen at bottom of editor. 

u (−−undo) 
Enable experimental generic-purpose undo code. By default, the undo and redo shortcuts are Meta-U(alt + u/escape first then u ) and Meta-E (alt + e / escape first then e), respectively. 

$ (−−softwrap) 
Enable soft wrapping. nano will attempt to display the entire contents of a line, even if it is longer than the screen width. Since $ normally refers to a variable in the Unix shell, you should specify this option last when using other options (e.g. nano wS$) or pass it separately (e.g. nano wS $).