title: Print first 100 bytes of a binary file as uint8 in Linux
body: <p>The following Javascript example reads and logs the first 100 bytes of a file selected by a user (via the file input):</p>
  
  <pre><code>var blob = file.slice(0, 100);            
  
  var fileReader = new FileReader();
  fileReader.onload = function(event) {
      var arrayBuffer = event.target.result;
      var bytes = new Uint8Array(arrayBuffer);
      console.log('bytes', bytes);
  };
  
  fileReader.readAsArrayBuffer(blob);
  </code></pre>
  
  <p>What is the equivalent to achieve the same via a Linux utility like <code>hexdump</code> or <code>od</code>?</p>
  
  <p><em>UPDATE:</em> I am looking for <code>hexdump -d</code> but producing single byte decimals, instead of 2 byte decimals.</p>