I just downloaded Hortonworks sandbox VM, inside it there are Hadoop with the version 2.7.1. I adding some files by using the
hadoop fs -put /hw1/* /hw1 <
hadoop fs -put /hw1/* /hw1
If you also need to skip trash following command works for me
hdfs dfs -rm -R -skipTrash /path/to/HDFS/file