title: What is the shortcut to allow new lines in linux terminal?
body: <p>I'm searching for the couple of shortcuts to allow to write multilines commands in the terminal.<br />
  I know it exist, I used it many times, but I can't remberber them, and I don't find them in google...</p>
  <p>The behavior it have:<br />
  Once in the middle of a line, it will &quot;delete&quot; the right part, and when we press the Enter button, it don't execute the command, but go to a new line (that start with '&gt;' if I well remember).<br />
  When we are done, we press the second shortcut, and it paste the part that where deleted before, and the Enter key behavior come back as the original.</p>
  <p>(I tought it was something like Ctrl+j / ctrl+f, but it's not, I also tried many combination but never succeed)</p>
  <p>Hoping you remember them, you'll make my day. Thanks!</p>
  <h2> Edit for a better understanding:</h2>
  <p>On a command like this (a call to a ros service, providing arguments):</p>
  <pre><code>rosservice call /operatorshift/updateProgramSteps &quot;category: ''
  name: ''
  steps:
  - command: ''
    args: ''
  othersarg ''&quot; 
  </code></pre>
  <p>The steps argument is an array, and I want to provide more than one step, without deleting and rewriting the next lines.<br />
  The behavior is as follow:<br />
  I move my cursor at the end of the 5th line (args: '' [HERE]), and I press the first shortcut. The command would look like:</p>
  <pre><code>rosservice call /operatorshift/updateProgramSteps &quot;category: ''
  name: ''
  steps:
  - command: ''
    args: ''  
  </code></pre>
  <p>and I press &quot;enter&quot;, not to execute the command, but to add a new line (and the '&gt;' character appear on the left of my cursor, instead of my computer's name). I can write my other &quot;step&quot;, pressing &quot;enter&quot; many time if I want, so my terminal would look like this:</p>
  <pre><code>rosservice call /operatorshift/updateProgramSteps &quot;category: ''
  name: ''
  steps:
  - command: ''
    args: ''  
  &gt; - command: 'example'
  &gt; args: ''
  &gt;  
  </code></pre>
  <p>Then I'm done editing this command, so I press the second shortcut, that retrieve what the first have deleted, and the &quot;enter&quot; key get its default behavior (execute the command)</p>
  <pre><code>rosservice call /operatorshift/updateProgramSteps &quot;category: ''
  name: ''
  steps:
  - command: ''
    args: ''  
  &gt; - command: 'example'
  &gt; args: ''
  othersarg ''&quot; 
  </code></pre>
  <p>(not sure that '&gt;' stay on screen after pressing the second shortcut)</p>
  <p>I remember using it on Ubuntu 14.04, and on 16.04, with the default shell, without having to install a special package.</p>