title: Generating a SHA-256 hash from the Linux command line
body: <p>I know the string "foobar" generates the SHA-256 hash <code>c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2</code> using
  <a href="http://hash.online-convert.com/sha256-generator" rel="noreferrer">http://hash.online-convert.com/sha256-generator</a></p>
  
  <p>However the command line shell:</p>
  
  <pre><code>hendry@x201 ~$ echo foobar | sha256sum
  aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f  -
  </code></pre>
  
  <p>Generates a different hash. What am I missing?</p>