title: What is the difference between double-ampersand (&&) and semicolon (;) in Linux Bash?
body: <p>What is the difference between ampersand and semicolon in Linux <a href="http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29" rel="noreferrer">Bash</a>?</p>
  
  <p>For example,</p>
  
  <pre><code>$ command1 &amp;&amp; command2
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>$ command1; command2
  </code></pre>