title: Hadoop ls command not working
body: <p>I am able to create directories in HDFS but when I submit 'ls' command it is giving the error mentioned below. I got the same error when I gave bin/hadoop dfs –ls /. What am I missing?</p>
  
  <pre><code>hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs -mkdir skalburginput
  Warning: $HADOOP_HOME is deprecated.
  
  hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs -mkdir skalburgoutput
  Warning: $HADOOP_HOME is deprecated.
  
  hduser@Server-8-22:/usr/local/hadoop$ bin/hadoop fs –ls
  Warning: $HADOOP_HOME is deprecated.
  
  ls: Unknown command
  Usage: java FsShell
         [-ls &lt;path&gt;]
         [-lsr &lt;path&gt;]
         [-du &lt;path&gt;]
         [-dus &lt;path&gt;]
         [-count[-q] &lt;path&gt;]
         [-mv &lt;src&gt; &lt;dst&gt;]
  </code></pre>