4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or https://opensource.org/licenses/CDDL-1.0.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
23 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
24 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
26 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
27 .\" Copyright (c) 2014 Integros [integros.com]
28 .\" Copyright 2019 Richard Laager. All rights reserved.
29 .\" Copyright 2018 Nexenta Systems, Inc.
30 .\" Copyright 2019 Joyent, Inc.
38 .Nd list properties of ZFS datasets
42 .Op Fl r Ns | Ns Fl d Ar depth
44 .Oo Fl o Ar property Ns Oo , Ns Ar property Oc Ns … Oc
45 .Oo Fl s Ar property Oc Ns …
46 .Oo Fl S Ar property Oc Ns …
47 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
48 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Oc Ns …
51 If specified, you can list property information by the absolute pathname or the
53 By default, all file systems and volumes are displayed.
54 Snapshots are displayed if the
65 options are specified.
66 The following fields are displayed:
67 .Sy name , Sy used , Sy available , Sy referenced , Sy mountpoint .
70 Used for scripting mode.
71 Do not print headers and separate fields by a single tab instead of arbitrary
74 Recursively display any children of the dataset, limiting the recursion to
80 will display only the dataset and its direct children.
82 A comma-separated list of properties to display.
86 One of the properties described in the
95 to display the dataset name
99 to display space usage properties on file systems and volumes.
100 This is a shortcut for specifying
101 .Fl o Ns \ \& Ns Sy name , Ns Sy avail , Ns Sy used , Ns Sy usedsnap , Ns
102 .Sy usedds , Ns Sy usedrefreserv , Ns Sy usedchild
103 .Fl t Sy filesystem , Ns Sy volume .
106 Display numbers in parsable
110 Recursively display any children of the dataset on the command line.
112 A property for sorting the output by column in ascending order based on the
113 value of the property.
114 The property must be one of the properties described in the
120 to sort by the dataset name.
121 Multiple properties can be specified at one time using multiple
126 options are evaluated from left to right in decreasing order of importance.
127 The following is a list of sorting criteria:
130 Numeric types sort in numeric order.
132 String types sort in alphabetical order.
134 Types inappropriate for a row sort that row to the literal bottom, regardless of
135 the specified ordering.
138 If no sorting options are specified the existing behavior of
144 but sorts by property in descending order.
146 A comma-separated list of types to display, where
155 For example, specifying
157 displays only snapshots.
161 .\" These are, respectively, examples 5 from zfs.8
162 .\" Make sure to update them bidirectionally
163 .Ss Example 1 : No Listing ZFS Datasets
164 The following command lists all active file systems and volumes in the system.
165 Snapshots are displayed if
166 .Sy listsnaps Ns = Ns Sy on .
171 for more information on pool properties.
172 .Bd -literal -compact -offset Ds
174 NAME USED AVAIL REFER MOUNTPOINT
175 pool 450K 457G 18K /pool
176 pool/home 315K 457G 21K /export/home
177 pool/home/anne 18K 457G 18K /export/home/anne
178 pool/home/bob 276K 457G 276K /export/home/bob