man: zfs-list.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228
This commit is contained in:
наб 2022-03-16 18:33:41 +01:00 committed by Brian Behlendorf
parent 2057b47b91
commit 52f3aebdb2
2 changed files with 23 additions and 1 deletions

View File

@ -29,7 +29,7 @@
.\" Copyright 2018 Nexenta Systems, Inc. .\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2019 Joyent, Inc. .\" Copyright 2019 Joyent, Inc.
.\" .\"
.Dd May 27, 2021 .Dd March 16, 2022
.Dt ZFS-LIST 8 .Dt ZFS-LIST 8
.Os .Os
. .
@ -157,6 +157,27 @@ For example, specifying
displays only snapshots. displays only snapshots.
.El .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 .Sh SEE ALSO
.Xr zfsprops 7 , .Xr zfsprops 7 ,
.Xr zfs-get 8 .Xr zfs-get 8

View File

@ -300,6 +300,7 @@ if invalid command line options were specified.
. .
.Sh EXAMPLES .Sh EXAMPLES
.\" Examples 1, 4, 6, 14, 16 are shared with zfs-set.8. .\" 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 shared with zfs-send.8.
.\" Examples 12, 13 are also shared with zfs-receive.8. .\" Examples 12, 13 are also shared with zfs-receive.8.
.\" Examples 17, 18, 19, 20, 21 are shared with zfs-allow.8. .\" Examples 17, 18, 19, 20, 21 are shared with zfs-allow.8.