title: How to redirect both stdout and stderr to a file
body: <p>I am running a bash script that creates a log file for the execution of the command</p>
  <p>I use the following</p>
  <pre><code>Command1 &gt;&gt; log_file
  Command2 &gt;&gt; log_file
  </code></pre>
  <p>This only sends the standard output and not the standard error which appears on the terminal.</p>