Option name |
Use format |
meaning |
-ls |
-ls <path> |
View the current directory structure of the specified path |
-lsr |
-lsr <path> |
Recursively view the directory structure of the specified path |
-of |
-du <path> |
Count the size of the file in the directory |
-So |
-dus <path> |
File (folder) size in summary statistics directory |
-count |
-count [-q] <path> |
Count the number of files (folders) |
-mv |
-mv <source path> <destination path> |
mobile |
-cp |
-cp <source path> <destination path> |
copy |
-rm |
-rm [-skipTrash] <path> |
Delete file/blank folder |
-rmr |
-rmr [-skipTrash] <path> |
Recursive delete |
-put |
-put <multiple files on linux> <hdfs path> |
upload files |
-copyFromLocal |
-copyFromLocal <multiple files on linux> <hdfs path> |
Copy from local |
-moveFromLocal |
-moveFromLocal <multiple files on linux> <hdfs path> |
Move from local |
-getmerge |
-getmerge <source path> <linux path> |
Merge to local |
-cat |
-cat <hdfs path> |
View file content |
-text |
-text <hdfs path> |
View file content |
-copyToLocal |
-copyToLocal [-ignoreCrc] [-crc] [hdfs source path] [linux destination path] |
Copy from local |
-moveToLocal |
-moveToLocal [-crc] <hdfs source path> <linux destination path> |
Move from local |
-mkdir |
-mkdir <hdfs path> |
Create a blank folder |
-setrep |
-setrep [-R] [-w] <number of copies> <path> |
Modify the number of copies |
-touch |
-touchz <file path> |
Create blank file |
-stat |
-stat [format] <path> |
Show file statistics |
-tail |
-tail [-f] <file> |
View the information at the end of the file |
-chmod |
-chmod [-R] <permission mode> [path] |
Modify permissions |
-chown |
-chown [-R] [owner][:[group]] path |
Modify owner |
-chgrp |
-chgrp [-R] The path of the group name |
Modify group |
-help |
-help [command option] |
help |
hadoop hdfs command encyclopedia
Guess you like
Origin blog.csdn.net/qq_28411869/article/details/86686072
Ranking