From 0ce6e534d372df81743b1eb00e89d02b3597beb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Apestegu=C3=ADa?= Date: Tue, 29 Dec 2020 21:35:24 +0100 Subject: [PATCH] lsvfs(1): Add EXAMPLES section Add one simple exapmle and contrast some of the information using mount(8) PR: Submitted by: Reported by: Reviewed by: gbe@, yuripv@ Approved by: manpages (bcr@) Obtained from: MFC after: MFH: Relnotes: Security: Sponsored by: Differential Revision: https://reviews.freebsd.org/D27544 --- usr.bin/lsvfs/lsvfs.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/usr.bin/lsvfs/lsvfs.1 b/usr.bin/lsvfs/lsvfs.1 index 5bdb64eed1ca..c86be83ba3f9 100644 --- a/usr.bin/lsvfs/lsvfs.1 +++ b/usr.bin/lsvfs/lsvfs.1 @@ -2,7 +2,7 @@ .\" Garrett A. Wollman, September 1994 .\" This file is in the public domain. .\" -.Dd June 9, 2013 +.Dd December 28, 2020 .Dt LSVFS 1 .Os .Sh NAME @@ -44,6 +44,22 @@ mounted file systems of this type .It Flags flag bits. .El +.Sh EXAMPLES +Show information about the +.Ql ufs +and +.Xr devfs 5 +filesystems and check the number of mounts for the former: +.Bd -literal -offset indent +$ lsvfs ufs devfs +Filesystem Num Refs Flags +-------------------------------- ---------- ----- --------------- +ufs 0x00000035 2 +devfs 0x00000071 1 synthetic, jail + +$ mount -t ufs | wc -l + 2 +.Ed .Sh SEE ALSO .Xr mount 2 , .Xr getvfsbyname 3 ,