HADOOP-13233. help of stat is confusing. Contributed by Attila Bukor.
(cherry picked from commit cc45da79fd
)
This commit is contained in:
parent
205fc1f10c
commit
12ad077aa6
|
@ -33,7 +33,7 @@ import org.apache.hadoop.fs.FileStatus;
|
||||||
* Format sequences:<br>
|
* Format sequences:<br>
|
||||||
* %a: Permissions in octal<br>
|
* %a: Permissions in octal<br>
|
||||||
* %A: Permissions in symbolic style<br>
|
* %A: Permissions in symbolic style<br>
|
||||||
* %b: Size of file in blocks<br>
|
* %b: Size of file in bytes<br>
|
||||||
* %F: Type<br>
|
* %F: Type<br>
|
||||||
* %g: Group name of owner<br>
|
* %g: Group name of owner<br>
|
||||||
* %n: Filename<br>
|
* %n: Filename<br>
|
||||||
|
@ -60,7 +60,7 @@ class Stat extends FsCommand {
|
||||||
"Print statistics about the file/directory at <path>" + NEWLINE +
|
"Print statistics about the file/directory at <path>" + NEWLINE +
|
||||||
"in the specified format. Format accepts permissions in" + NEWLINE +
|
"in the specified format. Format accepts permissions in" + NEWLINE +
|
||||||
"octal (%a) and symbolic (%A), filesize in" + NEWLINE +
|
"octal (%a) and symbolic (%A), filesize in" + NEWLINE +
|
||||||
"blocks (%b), type (%F), group name of owner (%g)," + NEWLINE +
|
"bytes (%b), type (%F), group name of owner (%g)," + NEWLINE +
|
||||||
"name (%n), block size (%o), replication (%r), user name" + NEWLINE +
|
"name (%n), block size (%o), replication (%r), user name" + NEWLINE +
|
||||||
"of owner (%u), modification date (%y, %Y)." + NEWLINE +
|
"of owner (%u), modification date (%y, %Y)." + NEWLINE +
|
||||||
"%y shows UTC date as \"yyyy-MM-dd HH:mm:ss\" and" + NEWLINE +
|
"%y shows UTC date as \"yyyy-MM-dd HH:mm:ss\" and" + NEWLINE +
|
||||||
|
|
|
@ -667,7 +667,7 @@ stat
|
||||||
|
|
||||||
Usage: `hadoop fs -stat [format] <path> ...`
|
Usage: `hadoop fs -stat [format] <path> ...`
|
||||||
|
|
||||||
Print statistics about the file/directory at \<path\> in the specified format. Format accepts permissions in octal (%a) and symbolic (%A), filesize in blocks (%b), type (%F), group name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner(%u), and modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds since January 1, 1970 UTC. If the format is not specified, %y is used by default.
|
Print statistics about the file/directory at \<path\> in the specified format. Format accepts permissions in octal (%a) and symbolic (%A), filesize in bytes (%b), type (%F), group name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner(%u), and modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds since January 1, 1970 UTC. If the format is not specified, %y is used by default.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
|
|
@ -867,7 +867,7 @@
|
||||||
</comparator>
|
</comparator>
|
||||||
<comparator>
|
<comparator>
|
||||||
<type>RegexpComparator</type>
|
<type>RegexpComparator</type>
|
||||||
<expected-output>^( |\t)*blocks \(%b\), type \(%F\), group name of owner \(%g\),( )*</expected-output>
|
<expected-output>^( |\t)*bytes \(%b\), type \(%F\), group name of owner \(%g\),( )*</expected-output>
|
||||||
</comparator>
|
</comparator>
|
||||||
<comparator>
|
<comparator>
|
||||||
<type>RegexpComparator</type>
|
<type>RegexpComparator</type>
|
||||||
|
|
Loading…
Reference in New Issue