title: cmd 2>&1 > log vs cmd > log 2>&1
body: <p>What is the difference between:</p>
  
  <pre><code>cmd &gt; log 2&gt;&amp;1
  </code></pre>
  
  <p>and</p>
  
  <pre><code>cmd 2&gt;&amp;1 &gt; log
  </code></pre>
  
  <p>where cmd is a command?</p>
  
  <p>Which should I prefer and why?</p>