title: Command output redirect to file and terminal
body: <p>I am trying to throw command output to file plus console also. This is because i want to keep record of output in file. I am doing following and it appending to file but not printing <code>ls</code> output on terminal. </p>
  
  <pre><code>$ls 2&gt;&amp;1 &gt; /tmp/ls.txt
  </code></pre>