Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • The OP is SSHing into an Ubuntu server, so pbpasteing into bash is not easily doable there. Commented May 13, 2013 at 8:02
  • 3
    Ah, that edit-current-line trick works. (Ctrl-x, Ctrl-E or ^X^E in other notation). Commented May 13, 2013 at 8:03
  • It is quite a few keystrokes all up.: Ctrl+X, Ctrl+E, Cmd-V, Ctrl+X, Y, <enter> Commented May 13, 2013 at 8:06
  • xsel on Linux. Commented Aug 25, 2015 at 7:58
  • @SteveBennett looks like your $VISUAL editor is nano ;) the keystrokes are different for other editors Commented Jun 29, 2018 at 7:43