test help: check if fs help message is shown -help SubstringComparator Usage: hadoop fs [generic options] help: help for ls -help ls RegexpComparator ^-ls \[-C\] \[-d\] \[-h\] \[-R\] \[-t\] \[-S\] \[-r\] \[-u\] \[<path> \.\.\.\] :( |\t)* RegexpComparator ^\s*List the contents that match the specified file pattern. If path is not RegexpComparator ^\s*specified, the contents of /user/<currentUser> will be listed. For a directory a( )* RegexpComparator ^( |\t)*list of its direct children is returned \(unless -d option is specified\).* RegexpComparator ^( |\t)*Directory entries are of the form:( )* RegexpComparator ^\s*permissions - userId groupId sizeOfDirectory\(in bytes\)( )* RegexpComparator ^\s*modificationDate\(yyyy-MM-dd HH:mm\) directoryName( )* RegexpComparator ^\s*and file entries are of the form:( )* RegexpComparator ^\s*permissions numberOfReplicas userId groupId sizeOfFile\(in bytes\)( )* RegexpComparator ^\s*modificationDate\(yyyy-MM-dd HH:mm\) fileName( )* RegexpComparator ^\s*-C\s+Display the paths of files and directories only\.( )* RegexpComparator ^\s*-d\s+Directories are listed as plain files\.( )* RegexpComparator ^\s*-h\s+Formats the sizes of files in a human-readable fashion( )* RegexpComparator ^\s*rather than a number of bytes\.( )* RegexpComparator ^\s*-R\s+Recursively list the contents of directories\.( )* RegexpComparator ^( |\t)*-t\s+Sort files by modification time \(most recent first\)\. RegexpComparator ^( |\t)*-S\s+Sort files by size\. RegexpComparator ^( |\t)*-r\s+Reverse the order of the sort\. RegexpComparator ^( |\t)*-u\s+Use time of last access instead of modification for RegexpComparator ^( |\t)*display and sorting\. help: help for lsr -help lsr RegexpComparator ^-lsr :\s* RegexpComparator ^\s+\(DEPRECATED\) Same as 'ls -R' help: help for get -help get RegexpComparator ^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*<src> \.\.\. <localdst> :\s* RegexpComparator \s*Copy files that match the file pattern <src> to the local name. <src> is kept.\s* RegexpComparator \s*When copying multiple files, the destination must be a directory. Passing -p\s* RegexpComparator ^( |\t)*preserves access and modification times, ownership and the mode.* help: help for du -help du RegexpComparator ^-du \[-s\] \[-h\] <path> \.\.\. :\s* RegexpComparator ^\s*Show the amount of space, in bytes, used by the files that match the specified\s* RegexpComparator ^\s*file pattern. The following flags are optional:\s* RegexpComparator ^\s*-s\s*Rather than showing the size of each individual file that matches the\s* RegexpComparator ^\s*pattern, shows the total \(summary\) size.\s* RegexpComparator ^\s*-h\s*Formats the sizes of files in a human-readable fashion rather than a number\s* RegexpComparator \s*of bytes.\s* RegexpComparator ^\s*Note that, even without the -s option, this only shows size summaries one level\s* RegexpComparator ^\s*deep into a directory. RegexpComparator ^\s*The output is in the form RegexpComparator ^\s*size\s+name\(full path\)\s* help: help for dus -help dus RegexpComparator ^-dus : RegexpComparator ^\s*\(DEPRECATED\) Same as 'du -s' help: help for count -help count RegexpComparator ^-count \[-q\] \[-h\] \[-v\] \[-t \[<storage type>\]\] <path> \.\.\. :( )* RegexpComparator ^\s*Count the number of directories, files and bytes under the paths( )* RegexpComparator ^( |\t)*that match the specified file pattern. The output columns are:( )* RegexpComparator ^( |\t)*DIR_COUNT FILE_COUNT CONTENT_SIZE PATHNAME( )* RegexpComparator ^( |\t)*or, with the -q option:( )* RegexpComparator ^( |\t)*QUOTA REM_QUOTA SPACE_QUOTA REM_SPACE_QUOTA( )* RegexpComparator ^( |\t)*DIR_COUNT FILE_COUNT CONTENT_SIZE PATHNAME( )* RegexpComparator ^( |\t)*The -h option shows file sizes in human readable format.( )* RegexpComparator ^( |\t)*The -v option displays a header line.( )* help: help for mv -help mv RegexpComparator ^-mv <src> \.\.\. <dst> :\s* RegexpComparator \s*Move files that match the specified file pattern <src> to a destination <dst>.( )* RegexpComparator ^( |\t)*When moving multiple files, the destination must be a directory.( )* help: help for cp -help cp RegexpComparator ^-cp \[-f\] \[-p \| -p\[topax\]\] <src> \.\.\. <dst> :\s* RegexpComparator ^\s*Copy files that match the file pattern <src> to a destination. When copying( )* RegexpComparator ^( |\t)*multiple files, the destination must be a directory.( )*Passing -p preserves status( )* RegexpComparator ^( |\t)*\[topax\] \(timestamps, ownership, permission, ACLs, XAttr\). If -p is specified( )* RegexpComparator ^( |\t)*with no <arg>, then preserves timestamps, ownership, permission. If -pa is( )* RegexpComparator ^( |\t)*specified, then preserves permission also because ACL is a super-set of( )* RegexpComparator ^( |\t)*permission. Passing -f overwrites the destination if it already exists. raw( )* RegexpComparator ^( |\t)*namespace extended attributes are preserved if \(1\) they are supported \(HDFS( )* RegexpComparator ^( |\t)*only\) and, \(2\) all of the source and target pathnames are in the \/\.reserved\/raw( )* RegexpComparator ^( |\t)*hierarchy. raw namespace xattr preservation is determined solely by the presence( )* RegexpComparator ^\s*\(or absence\) of the \/\.reserved\/raw prefix and not by the -p option.( )* help: help for rm -help rm RegexpComparator ^-rm \[-f\] \[-r\|-R\] \[-skipTrash\] \[-safely\] <src> \.\.\. :\s* RegexpComparator ^\s*Delete all files that match the specified file pattern. Equivalent to the Unix( )* RegexpComparator ^\s*command "rm <src>"( )* RegexpComparator ^\s*-skipTrash\s+option bypasses trash, if enabled, and immediately deletes <src>\.( )* RegexpComparator ^\s+-f\s+If the file does not exist, do not display a diagnostic message or\s* RegexpComparator ^\s+modify the exit status to reflect an error\.\s* RegexpComparator ^\s+-\[rR\]\s+Recursively deletes directories\.\s* help: help for rmdir -help rmdir RegexpComparator ^-rmdir \[--ignore-fail-on-non-empty\] <dir> \.\.\. :\s* RegexpComparator \s+Removes the directory entry specified by each directory argument, provided it is\s* RegexpComparator \s+empty\.\s* help: help for rmr -help rmr RegexpComparator ^-rmr :\s* RegexpComparator ^\s*\(DEPRECATED\) Same as '-rm -r'\s* help: help for put -help put RegexpComparator ^-put \[-f\] \[-p\] \[-l\] <localsrc> \.\.\. <dst> :( )* RegexpComparator ^\s*Copy files from the local file system into fs.( )*Copying fails if the file already( )* RegexpComparator ^\s*exists, unless the -f flag is given.( )* RegexpComparator ^\s*Flags:( )* RegexpComparator ^\s*-p Preserves access and modification times, ownership and the mode.( )* RegexpComparator ^\s*-f Overwrites the destination if it already exists.( )* RegexpComparator ^\s*-l Allow DataNode to lazily persist the file to disk. Forces( )* RegexpComparator ^\s*replication factor of 1. This flag will result in reduced( )* RegexpComparator ^\s*durability. Use with care.( )* help: help for copyFromLocal -help copyFromLocal RegexpComparator ^-copyFromLocal \[-f\] \[-p\] \[-l\] <localsrc> \.\.\. <dst> :\s* RegexpComparator ^\s*Identical to the -put command\.\s* help: help for moveFromLocal -help moveFromLocal RegexpComparator ^-moveFromLocal <localsrc> \.\.\. <dst> :\s* RegexpComparator ^( |\t)*Same as -put, except that the source is deleted after it's copied. help: help for get -help get RegexpComparator ^-get( )*\[-p\]( )*\[-ignoreCrc\]( )*\[-crc\]( )*<src> \.\.\. <localdst> :\s* RegexpComparator ^( |\t)*Copy files that match the file pattern <src> to the local name.( )*<src> is kept.( )* RegexpComparator ^( |\t)*When copying multiple files, the destination must be a directory. Passing -p( )* RegexpComparator ^( |\t)*preserves access and modification times, ownership and the mode.( )* help: help for getmerge -help getmerge RegexpComparator ^-getmerge \[-nl\] <src> <localdst> :\s* RegexpComparator ^( |\t)*Get all the files in the directories that match the source file pattern and( )* RegexpComparator ^( |\t)*merge and sort them to only one file on local fs. <src> is kept.( )* RegexpComparator ^( |\t)*-nl\s+Add a newline character at the end of each file.( )* help: help for cat -help cat RegexpComparator ^-cat \[-ignoreCrc\] <src> \.\.\. :\s* RegexpComparator ^\s*Fetch all files that match the file pattern <src> and display their content on\s* RegexpComparator ^\s*stdout. help: help for checksum -help checksum RegexpComparator ^-checksum <src> \.\.\. :\s* RegexpComparator ^\s*Dump checksum information for files that match the file pattern <src> to stdout\.\s* RegexpComparator ^\s*Note that this requires a round-trip to a datanode storing each block of the\s* RegexpComparator ^\s*file, and thus is not efficient to run on a large number of files\. The checksum\s* RegexpComparator ^\s*of a file depends on its content, block size and the checksum algorithm and\s* RegexpComparator ^\s*parameters used for creating the file\.\s* help: help for copyToLocal -help copyToLocal RegexpComparator ^-copyToLocal \[-p\] \[-ignoreCrc\] \[-crc\] <src> \.\.\. <localdst> :\s* RegexpComparator ^\s*Identical to the -get command.\s* help: help for moveToLocal -help moveToLocal RegexpComparator ^-moveToLocal <src> <localdst> :\s* RegexpComparator ^\s*Not implemented yet help: help for mkdir -help mkdir RegexpComparator ^-mkdir \[-p\] <path> \.\.\. :\s* RegexpComparator ^\s*Create a directory in specified location.( )* TokenComparator -p Do not fail if the directory already exists help: help for setrep -help setrep RegexpComparator ^-setrep \[-R\] \[-w\] <rep> <path> \.\.\. :\s* RegexpComparator ^\s*Set the replication level of a file. If <path> is a directory then the command( )* RegexpComparator ^\s*recursively changes the replication factor of all files under the directory tree( )* RegexpComparator ^\s*rooted at <path>\.( )* RegexpComparator ^\s*-w\s+It requests that the command waits for the replication to complete\. This( )* RegexpComparator ^( |\t)*can potentially take a very long time\.( )* RegexpComparator ^( |\t)*-R\s+It is accepted for backwards compatibility\. It has no effect\.( )* help: help for touchz -help touchz RegexpComparator ^-touchz <path> \.\.\. :( )* RegexpComparator ^( |\t)*Creates a file of zero length at <path> with current time as the timestamp of( )* RegexpComparator ^( |\t)* that <path>\. An error is returned if the file exists with non-zero length( )* help: help for test -help test RegexpComparator ^-test -\[defsz\] <path> :\s* RegexpComparator ^\s*Answer various questions about <path>, with result via exit status. RegexpComparator ^\s*-[defsz]\s+return 0 if .* help: help for stat -help stat RegexpComparator ^-stat \[format\] <path> \.\.\. :\s* RegexpComparator ^( |\t)*Print statistics about the file/directory at <path>( )* RegexpComparator ^( |\t)*in the specified format. Format accepts filesize in( )* RegexpComparator ^( |\t)*blocks \(%b\), type \(%F\), group name of owner \(%g\),( )* RegexpComparator ^( |\t)*name \(%n\), block size \(%o\), replication \(%r\), user name( )* RegexpComparator ^( |\t)*of owner \(%u\), modification date \(%y, %Y\).( )* RegexpComparator ^( |\t)*%y shows UTC date as "yyyy-MM-dd HH:mm:ss" and( )* RegexpComparator ^( |\t)*%Y shows milliseconds since January 1, 1970 UTC.( )* RegexpComparator ^( |\t)*If the format is not specified, %y is used by default.( )* help: help for tail -help tail RegexpComparator ^-tail \[-f\] <file> :\s* RegexpComparator ^\s*Show the last 1KB of the file.( )* RegexpComparator ^( |\t)*-f\s+Shows appended data as the file grows.( )* help: help for chmod -help chmod RegexpComparator ^-chmod \[-R\] <MODE\[,MODE\]... \| OCTALMODE> PATH... :\s* RegexpComparator ^( |\t)*Changes permissions of a file. This works similar to the shell's chmod command( )* RegexpComparator ^( |\t)*with a few exceptions.( )* RegexpComparator ^( |\t)*-R\s*modifies the files recursively. This is the only option currently( )* RegexpComparator ^( |\t)*supported.( )* RegexpComparator ^( |\t)*<MODE>\s*Mode is the same as mode used for the shell's command. The only( )* RegexpComparator ^( |\t)*letters recognized are 'rwxXt', e\.g\. \+t,a\+r,g-w,\+rwx,o=r\.( )* RegexpComparator ^( |\t)*<OCTALMODE>\s+Mode specifed in 3 or 4 digits. If 4 digits, the first may be 1 or( )* RegexpComparator ^( |\t)*0 to turn the sticky bit on or off, respectively.( )*Unlike( |\t)*the( )* RegexpComparator ^( |\t)*shell command, it is not possible to specify only part of the( )* RegexpComparator ^( |\t)*mode, e\.g\. 754 is same as u=rwx,g=rx,o=r\.( )* RegexpComparator ^( |\t)*If none of 'augo' is specified, 'a' is assumed and unlike the shell command, no( )* RegexpComparator ^( |\t)*umask is applied.( )* help: help for chown -help chown RegexpComparator ^-chown \[-R\] \[OWNER\]\[:\[GROUP\]\] PATH... :\s* RegexpComparator ^\s*Changes owner and group of a file\. This is similar to the shell's chown command( )* RegexpComparator ^( |\t)*with a few exceptions.( )* RegexpComparator ^( |\t)*-R( |\t)*modifies the files recursively. This is the only option currently( )* RegexpComparator ^( |\t)*supported.( )* RegexpComparator ^( |\t)*If only the owner or group is specified, then only the owner or group is( )* RegexpComparator ^( |\t)*modified. The owner and group names may only consist of digits, alphabet, and( )* RegexpComparator ^( |\t)*any of .+?. The names are case sensitive.( )* RegexpComparator ^( |\t)*WARNING: Avoid using '.' to separate user name and group though Linux allows it.( )* RegexpComparator ^( |\t)*If user names have dots in them and you are using local file system, you might( )* RegexpComparator ^( |\t)*see surprising results since the shell command 'chown' is used for local files.( )* help: help for chgrp -help chgrp RegexpComparator ^-chgrp \[-R\] GROUP PATH... :( )* RegexpComparator ^( |\t)*This is equivalent to -chown ... :GROUP ...( )* help: help for find -help find RegexpAcrossOutputComparator -find <path> \.\.\. <expression> \.\.\. : Finds all files that match the specified expression and applies selected actions to them\. If no <path> is specified then defaults to the current working directory\. If no expression is specified then defaults to -print\. The following primary expressions are recognised: -name pattern -iname pattern Evaluates as true if the basename of the file matches the pattern using standard file system globbing\. If -iname is used then the match is case insensitive\. -print -print0 Always evaluates to true. Causes the current pathname to be written to standard output followed by a newline. If the -print0 expression is used then an ASCII NULL character is appended rather than a newline. The following operators are recognised: expression -a expression expression -and expression expression expression Logical AND operator for joining two expressions\. Returns true if both child expressions return true\. Implied by the juxtaposition of two expressions and so does not need to be explicitly specified\. The second expression will not be applied if the first fails\. help: help for help -help help RegexpComparator ^-help \[cmd ...\] :( )* RegexpComparator ^( |\t)*Displays help for given command or all commands if none is specified.( )*