hadoop fs -help rmshel
hadoop fs -ls /
hadoop fs -mkdir -p /user/ha
hadoop fs -moveFromLocal ~/test.txt /home/ha/
hadoop fs -appendToFile /a.txt /b.txt
hadoop fs -cat /user/ysir/a.txt
hadoop fs -chmod 777 /a.txt
hadoop fs -chown admin:ysir /a.txt
hadoop fs -copyFromLocal a.txt /
hadoop fs -copyToLocal /a.txt ~/
hadoop fs -cp /aaa/a.txt /bbb/
hadoop fs -mv /aaa/a.txt /bbb/
hadoop fs -get /aaa/a.txt
hadoop fs -getmerge /logs/* ~/logs.log # 将HDFS上/logs/路径下的所有文件合并下载到本地~/logs.log文件中
hadoop fs -put ~/a.txt /
hadoop fs -tail /a.txt
hadoop fs -rm /user/ysir/a.txt
hadoop fs -mkdir /temp
18. -du:统计文件夹的大小信息
hadoop fs -du -s -h /temp
hadoop fs -setrep 5 /a.txt