summaryrefslogtreecommitdiff
path: root/usr.bin/stat
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-12-05 22:16:51 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-12-05 22:16:51 +0000
commitd127a98c99dfaa563a68cc0ca7bef85563a94e7b (patch)
tree5318303a747fe0eaf5ae29129a5a4432722c0afe /usr.bin/stat
parent1863d408e013eb4d76b2b697cbde68978c494d11 (diff)
downloadsrc-test-d127a98c99dfaa563a68cc0ca7bef85563a94e7b.tar.gz
src-test-d127a98c99dfaa563a68cc0ca7bef85563a94e7b.zip
Bring in the changes from NetBSD 1.13 that we did not already have, with
some differences. "Sort options. Use more mdoc macros. Some nit fixes. Bump date." Obtained from: wiz@NetBSD.org
Notes
Notes: svn path=/head/; revision=216213
Diffstat (limited to 'usr.bin/stat')
-rw-r--r--usr.bin/stat/stat.113
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/stat/stat.1 b/usr.bin/stat/stat.1
index 33e119648af1c..a94c305b93c9d 100644
--- a/usr.bin/stat/stat.1
+++ b/usr.bin/stat/stat.1
@@ -50,7 +50,7 @@ The
.Nm
utility displays information about the file pointed to by
.Ar file .
-Read, write or execute permissions of the named file are not required, but
+Read, write, or execute permissions of the named file are not required, but
all directories listed in the path name leading to the file must be
searchable.
If no argument is given,
@@ -122,6 +122,10 @@ If the link is broken or the target does not exist,
fall back on
.Xr lstat 2
and report information about the link.
+.It Fl l
+Display output in
+.Ic ls Fl lT
+format.
.It Fl n
Do not force a newline to appear at the end of each piece of output.
.It Fl q
@@ -151,7 +155,8 @@ display the raw, numerical value (for example, times in seconds since the
epoch, etc.).
.It Fl s
Display information in
-.Dq "shell output" ,
+.Dq shell output
+format,
suitable for initializing variables.
.It Fl x
Display information in a more verbose way as known from some
@@ -438,7 +443,7 @@ which default to
.Sh EXIT STATUS
.Ex -std stat readlink
.Sh EXAMPLES
-If no options are specified, default format is
+If no options are specified, the default format is
"%d %i %Sp %l %Su %Sg %r %z \\"%Sa\\" \\"%Sm\\" \\"%Sc\\" \\"%SB\\" %k %b %#Xf %N".
.Bd -literal -offset indent
\*[Gt] stat /tmp/bar
@@ -446,7 +451,7 @@ If no options are specified, default format is
.Ed
.Pp
Given a symbolic link
-.Pa foo
+.Dq foo
that points from
.Pa /tmp/foo
to