title: redirect error message to file - shell
body: <p>I am trying to redirect and view all my error messages from a compile to error.txt
  According to my book it can be done in this way.</p>
  
  <pre><code>$CC error.cpp &gt; error&amp;1 | more
  </code></pre>
  
  <p>but however it only creates a blank file but did not store the error messages. what have I done wrong? </p>
  
  <p>p.s i did purposely make my server.cpp can't compile so that it will display some error message</p>