
#### 1.2.2 文件操作方法
* 查看HDFS中一个文件`in0.txt`的内容
hdfs dfs -cat in0.txt

* 把HDFS中的`in0.txt`文件内容下载到本地系统`/home/zqc/download`
hdfs dfs -get in0.txt /home/zqc/download


* 文件上传到HDFS out文件夹中
hdfs dfs -put /home/zqc/score.txt out


* 把文件从HDFS的一个目录复制到另外一个目录
hdfs dfs -cp out/score.txt wordcount/input
![在这里插入图片描述](https: