summaryrefslogtreecommitdiffstats
path: root/usr.bin/stat/stat.1
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2014-05-07 19:22:54 +0000
committerthomas <thomas@FreeBSD.org>2014-05-07 19:22:54 +0000
commit939c7d3f2dc2df1015aca64ad6da3fa2b0cb77da (patch)
treea33cedebf41dae95e04622bee9dcdc3a96a7cdbc /usr.bin/stat/stat.1
parentc993fc87094127f61ec616caf951b3061d357467 (diff)
downloadFreeBSD-src-939c7d3f2dc2df1015aca64ad6da3fa2b0cb77da.zip
FreeBSD-src-939c7d3f2dc2df1015aca64ad6da3fa2b0cb77da.tar.gz
Introduce a new command line switch '-H' for stat(1)
causing arguments to be interpreted as NFS file handles. Reviewed by: -arch (jhb, eadler) MFC after: 1 month
Diffstat (limited to 'usr.bin/stat/stat.1')
-rw-r--r--usr.bin/stat/stat.18
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/stat/stat.1 b/usr.bin/stat/stat.1
index 7d591b8..eb8894c 100644
--- a/usr.bin/stat/stat.1
+++ b/usr.bin/stat/stat.1
@@ -38,7 +38,7 @@
.Nd display file status
.Sh SYNOPSIS
.Nm
-.Op Fl FLnq
+.Op Fl FHLnq
.Op Fl f Ar format | Fl l | r | s | x
.Op Fl t Ar timefmt
.Op Ar
@@ -124,6 +124,12 @@ The use of
.Fl F
implies
.Fl l .
+.It Fl H
+Treat each argument as the hexadecimal representation of an NFS file handle,
+and use
+.Xr fhstat 2
+instead of
+.Xr lstat 2 .
.It Fl L
Use
.Xr stat 2
OpenPOWER on IntegriCloud