title: view contents of file in hdfs hadoop
body: <p>Probably a noob question but is there a way to read the contents of file in hdfs besides copying to local and reading thru unix?</p>
  
  <p>So right now what I am doing is:</p>
  
  <pre><code>  bin/hadoop dfs -copyToLocal hdfs/path local/path
  
    nano local/path
  </code></pre>
  
  <p>I am wondering if I can open a file directly to hdfs rather than copying it on local and then opening it.</p>