| ZFS-LIST(8) | System Manager's Manual | ZFS-LIST(8) |
zfs-list — list
properties of ZFS datasets
zfs |
list
[-r|-d
depth] [-Hp]
[-j [--json-int]]
[-o
property[,property]…]
[-s property]…
[-S property]…
[-t
type[,type]…]
[filesystem|volume|snapshot]… |
By default, all file systems and volumes are displayed, with the
following fields: name, used,
available,
referenced,
mountpoint.
Snapshots are displayed if the
listsnapshots
pool property is on (the default is off)
or if the -t snapshot or
-t all options are specified.
-H-j,
--json [--json-int]-d
depth-o
property-o name,avail,used,usedsnap,usedds,usedrefreserv,usedchild
-t
filesystem,volume.-p-r-s
property-s or -S options. Multiple
-s and -S options are
evaluated from left to right to supply sort keys in decreasing order of
priority. Property types operate as follows:
If no sort columns are specified, or if two lines of output would sort equally across all specified columns, then datasets and bookmarks are sorted by name, whereas snapshots are sorted first by the name of their dataset and then by the time of their creation. When no sort columns are specified but snapshots are listed, this default behavior causes snapshots to be grouped under their datasets in chronological order by creation time.
-S
property-s, but sorts by
property in descending order.-t
type-t snapshot displays only
snapshots.
fs,
snap, or
vol can be
used as aliases for filesystem,
snapshot, or volume.The following command lists all active file systems and volumes in the system. Snapshots are displayed if listsnaps=on. The default is off. See zpoolprops(7) for more information on pool properties.
#zfslistNAME 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
#zfslist-j-tfilesystem,snapshot |jq{ "output_version": { "command": "zfs list", "vers_major": 0, "vers_minor": 1 }, "datasets": { "pool": { "name": "pool", "type": "FILESYSTEM", "pool": "pool", "properties": { "used": { "value": "290K", "source": { "type": "NONE", "data": "-" } }, "available": { "value": "30.5G", "source": { "type": "NONE", "data": "-" } }, "referenced": { "value": "24K", "source": { "type": "NONE", "data": "-" } }, "mountpoint": { "value": "/pool", "source": { "type": "DEFAULT", "data": "-" } } } }, "pool/home": { "name": "pool/home", "type": "FILESYSTEM", "pool": "pool", "properties": { "used": { "value": "48K", "source": { "type": "NONE", "data": "-" } }, "available": { "value": "30.5G", "source": { "type": "NONE", "data": "-" } }, "referenced": { "value": "24K", "source": { "type": "NONE", "data": "-" } }, "mountpoint": { "value": "/mnt/home", "source": { "type": "LOCAL", "data": "-" } } } }, "pool/home/bob": { "name": "pool/home/bob", "type": "FILESYSTEM", "pool": "pool", "properties": { "used": { "value": "24K", "source": { "type": "NONE", "data": "-" } }, "available": { "value": "30.5G", "source": { "type": "NONE", "data": "-" } }, "referenced": { "value": "24K", "source": { "type": "NONE", "data": "-" } }, "mountpoint": { "value": "/mnt/home/bob", "source": { "type": "INHERITED", "data": "pool/home" } } } }, "pool/home/bob@v1": { "name": "pool/home/bob@v1", "type": "SNAPSHOT", "pool": "pool", "dataset": "pool/home/bob", "snapshot_name": "v1", "properties": { "used": { "value": "0B", "source": { "type": "NONE", "data": "-" } }, "available": { "value": "-", "source": { "type": "NONE", "data": "-" } }, "referenced": { "value": "24K", "source": { "type": "NONE", "data": "-" } }, "mountpoint": { "value": "-", "source": { "type": "NONE", "data": "-" } } } } } }
| August 25, 2025 | OpenZFS |