aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-16 18:33:41 +0100
committerBrian Behlendorf <[email protected]>2022-03-28 10:13:14 -0700
commit52f3aebdb2b4b457812fbac572df67461d7162bf (patch)
treeebd8f55016f231b5f16e0f27b73a3ea98c4980e6
parent2057b47b91a4c7937209f23be85608848521f284 (diff)
man: zfs-list.8: import examples from zfs.8
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13228
-rw-r--r--man/man8/zfs-list.823
-rw-r--r--man/man8/zfs.81
2 files changed, 23 insertions, 1 deletions
diff --git a/man/man8/zfs-list.8 b/man/man8/zfs-list.8
index 2de168bd8..2b4c13d0e 100644
--- a/man/man8/zfs-list.8
+++ b/man/man8/zfs-list.8
@@ -29,7 +29,7 @@
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2019 Joyent, Inc.
.\"
-.Dd May 27, 2021
+.Dd March 16, 2022
.Dt ZFS-LIST 8
.Os
.
@@ -157,6 +157,27 @@ For example, specifying
displays only snapshots.
.El
.
+.Sh EXAMPLES
+.\" These are, respectively, examples 5 from zfs.8
+.\" Make sure to update them bidirectionally
+.Ss Example 1 : No Listing ZFS Datasets
+The following command lists all active file systems and volumes in the system.
+Snapshots are displayed if
+.Sy listsnaps Ns = Ns Sy on .
+The default is
+.Sy off .
+See
+.Xr zpoolprops 7
+for more information on pool properties.
+.Bd -literal -compact -offset Ds
+.No # Nm zfs Cm list
+NAME USED AVAIL REFER MOUNTPOINT
+pool 450K 457G 18K /pool
+pool/home 315K 457G 21K /export/home
+pool/home/anne 18K 457G 18K /export/home/anne
+pool/home/bob 276K 457G 276K /export/home/bob
+.Ed
+.
.Sh SEE ALSO
.Xr zfsprops 7 ,
.Xr zfs-get 8
diff --git a/man/man8/zfs.8 b/man/man8/zfs.8
index ae31d3948..8d97eb6f2 100644
--- a/man/man8/zfs.8
+++ b/man/man8/zfs.8
@@ -300,6 +300,7 @@ if invalid command line options were specified.
.
.Sh EXAMPLES
.\" Examples 1, 4, 6, 14, 16 are shared with zfs-set.8.
+.\" Examples 5 are shared with zfs-list.8.
.\" Examples 12, 13 are shared with zfs-send.8.
.\" Examples 12, 13 are also shared with zfs-receive.8.
.\" Examples 17, 18, 19, 20, 21 are shared with zfs-allow.8.