列出文件目录
hdfs dfs -ls /user/hive/warehouse
列出全部目录与文件
hdfs dfs -ls -R /user/hive/warehouse
查看目录文件大小
hdfs dfs -du -s -h /user/hive/warehouse
查看目录概况
hdfs dfs -count -h /user/hive/warehouse
删除目录与文件
hdfs dfs -rm /user/hive/warehouse/stg.db/events/etl_dt=20200910
递归删除目录文件
hdfs dfs -rm -r /user/hive/warehouse/stg.db/events/etl_dt=20200910
清理过期文件
hdfs dfs -expunge
标签:hdfs,HDFS,基础,hive,dfs,命令,user,warehouse,目录 From: https://www.cnblogs.com/kevinlucky/p/16711023.html