The file System (FS) shell includes various shell-like commands that directly interact with the Hadoop distributed File Sy Stem (HDFS) as well as other file systems that Hadoop supports, such as Local FS, Hftp FS, S3 FS, and others. The FS shell is invoked by:
Bin/hadoop FS <args>
Appendtofile
Usage: hadoop fs-appendtofile <localsrc> ... <dst>
Cat
Usage: hadoop fs-cat uri [uri ...]
Checksum
Usage: Hadoop fs-checksum URI
Chgrp
Usage: Hadoop fs-chgrp [-R] GROUP uri [uri ...]
chmod
Usage: Hadoop fs-chmod [-r] <mode[,mode] ... | octalmode> uri [uri ...]
Chown
Usage: Hadoop Fs-chown [-R] [Owner][:[group]] uri [URI]
Copyfromlocal
Usage: Hadoop fs-copyfromlocal <localsrc> URIs
Copytolocal
Usage: Hadoop fs-copytolocal [-IGNORECRC] [-CRC] URI <localdst>
Count
Usage: Hadoop fs-count [-Q] [-h] [-v] <paths>
Cp
Usage: Hadoop FS-CP [-f] [-P |-p[topax]] URI [uri ...] <dest>
Df
Usage: Hadoop fs-df [-h] uri [uri ...]
Du
Usage: Hadoop fs-du [-S] [-h] uri [uri ...]
Dus
Usage: Hadoop fs-dus <args>
Expunge
Usage: Hadoop fs-expunge
Find
Usage: hadoop fs-find <path> ... <expression> ...
Get
Usage: Hadoop fs-get [-IGNORECRC] [-CRC] <src> <localdst>
Getfacl
Usage: Hadoop fs-getfacl [-R] <path>
Getfattr
Usage: Hadoop fs-getfattr [-r]-N name |-d [-e en] <path>
Getmerge
Usage: hadoop fs-getmerge <src> <localdst> [ADDNL]
Help
Usage: Hadoop fs-help
Ls
Usage: Hadoop fs-ls [-d] [-h] [-r] [-T] [-S] [-r] [-u] <args>
Lsr
Usage: Hadoop FS-LSR <args>
Mkdir
Usage: Hadoop fs-mkdir [-p] <paths>
Movefromlocal
Usage: hadoop fs-movefromlocal <localsrc> <dst>
Movetolocal
Usage: Hadoop fs-movetolocal [-CRC] <src> <dst>
Mv
Usage: hadoop fs-mv uri [uri ...] <dest>
Put
Usage: hadoop fs-put <localsrc> ... <dst>
Rm
Usage: Hadoop fs-rm [-F] [-R |-r] [-skiptrash] uri [uri ...]
RmDir
Usage: Hadoop fs-rmdir [--ignore-fail-on-non-empty] uri [uri ...]
RMr
Usage: Hadoop fs-rmr [-skiptrash] uri [uri ...]
Setfacl
Usage: Hadoop fs-setfacl [-R] [-B |-k-m |-x <acl_spec> <path>] |[ --set <acl_spec> <path>]
Setfattr
Usage: Hadoop fs-setfattr-n Name [-V value] |-X name <path>
Setrep
Usage: Hadoop fs-setrep [-R] [-W] <numReplicas> <path>
Stat
Usage: hadoop fs-stat [format] <path> ...
Tail
Usage: Hadoop Fs-tail [-f] URI
Test
Usage: Hadoop fs-test-[defsz] URI
Text
Usage: Hadoop fs-text <src>
Touchz
Usage: hadoop fs-touchz uri [uri ...]
Truncate
Usage: Hadoop fs-truncate [-W] <length> <paths>
Usage
Usage: hadoop fs-usage Command
Http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/FileSystemShell.html
Hadoop File command