-mv命令兼具移动与改名的双重功能/ied目录更名为/ied01hdfs dfs -mv /ied /ied01

/ied01/exam.txt更名为/ied01/test.txthdfs dfs -mv /ied01/exam.txt /ied01/test.txt
test.txt文件内容
/ied01里有一个test.txt,创建sport.txt和music.txt并上传
/ied01目录的文件下载到本地当前目录的merger.txthdfs dfs -getmerge /ied01/* merger.txt 
merger.txt,查看是不是三个文件合并后的内容cat merger.txt
test.txt文件hdfs fsck /ied01/test.txt -files -block -locations -racks
/ied01目录里创建一个文件sunshine.txthdfs dfs -touchz /ied01/sunshine.txt

/ied02hdfs dfs -mkdir /ied02
/ied01/music.txt复制到/ied02里hdfs dfs -cp /ied01/music.txt /ied02

/ied01/test.txt复制到/ied02目录,改名为hello.txthdfs dfs -cp /ied01/exam.txt /ied02/hello.txt

hdfs dfs -cp /ied01 /ied03

hdfs dfs -du /ied01/test.txt 
copyFromLocal类似于-puthdfs dfs -copyFromLocal merger.txt /ied02

copyToLocal类似于-gethdfs dfs -copyToLocal /ied01/sunshine.txt sunlight.txt

hdfs dfs -count /ied01
hadoop checknative -a