How to copy and paste selected text in nano on a Mac?

  1. Set the mark to start highlighting the text : Ctrl+6 or Ctrl+Shift+6
  2. Copy the highlighted text: Option+6 or Option+Shift+6
  3. Paste the text: Ctrl+u

Note: Your meta key should mapped to the Option / Alt key (by default it would be mapped to the Esc key in case of iTerm.

On iTerm, you can do this by going to Preferences -> Profiles -> Keys and set Left option key and Right option key to Esc+


I use Option+6 shortcut to copy selected