title: -cp command in hadoop
body: <p>Copying file from one hdfs location to another using -cp command</p>
  
  <p>Command - <code>hadoop fs -cp -p /user/cloudera/data/new.txt  /user/cloudera/data1</code>
  (Without creating '<code>data1</code>' directory before using above command)</p>
  
  <p>When <code>-ls</code> command is used to see the file in the directory <code>data1</code>- I do not see the file.</p>
  
  <p>Is it mandatory to create directory and then copy?<br>
  As with current case explained above I did not get any error.</p>