ZFS-USERSPACE(8)
πΈ ZFS-USERSPACE(8) πΈ
okay bestie, welcome to the system manager's manual section, we're talking zfs-userspace today and it's honestly so useful it's giving main character energy π
β¨ NAME β¨
zfs-userspace β display space and quotas of ZFS dataset π«Ά
π¦ SYNOPSIS π¦
zfs userspace [-Hinp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦ [-t
type[,type]β¦] filesystem|snapshot|path
zfs groupspace [-Hinp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦ [-t
type[,type]β¦] filesystem|snapshot|path
zfs projectspace [-Hp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦
filesystem|snapshot|path
likeβ¦ three whole subcommands, each one a lil icon, no cap β¨
π DESCRIPTION π
π zfs userspace
zfs userspace [-Hinp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦ [-t
type[,type]β¦] filesystem|snapshot|path
this one shows you the space each user is eating up, plus their quotas, inside whatever filesystem, snapshot, or path you hand it. and if you give it a path? it's smart enough to figure out which filesystem contains that path and use that one. obsessed.
this maps to the userused@user, userobjused@user, userquota@user, and userobjquota@user properties π
-Hβ don't print headers, bestie, just give me tab-delimited output.-Sfield β sort by this field but in reverse. peek at-sfor the details.-iβ translate SID to POSIX ID. heads up though: the POSIX ID might be ephemeral if there's no mapping for it. normal POSIX stuff (likestat(2)andls -l) does this translation too, so-ilets you line upzfs userspaceoutput right next to those utilities, which is so handy. but β and this is the messy part β-ican get confusing if some files were made by an SMB user before an SMB-to-POSIX name mapping existed. in that case some files end up owned by the SMB entity and some by the POSIX entity, and-iwill just report that the POSIX entity has the total usage and quota for both of them. π yeah. it do be like that.-nβ print the numeric ID instead of the user/group name.-ofield[,field]β¦ β only show the fields you pick from this set:type,name,used,quota. default is all of them, because more is more π-pβ exact (parsable) numeric output. for when you're piping things, iykyk.-sfield β sort the output by this field. and yes,-sand-Scan be given multiple times, so you sort by one field first, then by another, like the layered queen you are. the default is-s type -s name.-ttype[,type]β¦ β only print the types you name from this set:all,posixuser,smbuser,posixgroup,smbgroup. the default is-t posixuser,smbuser, and that default can be changed to include group types.
πΈ zfs groupspace
zfs groupspace [-Hinp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦ [-t
type[,type]β¦] filesystem|snapshot
same energy, different crowd: this shows the space consumed by, and quotas on, each group in the filesystem or snapshot you point at. it's literally identical to userspace except the default types it displays are -t posixgroup,smbgroup. that's it, that's the diff π
π zfs projectspace
zfs projectspace [-Hp] [-o field[,field]β¦] [-s field]β¦ [-S field]β¦
filesystem|snapshot|path
and this one does the space-and-quotas thing for each project in the given filesystem or snapshot. again identical to userspace, except the project identifier is a numeral, not a name. so you don't need -i for SID to POSIX ID, you don't need -n for numeric ID, and you don't need -t for types. none of them. not invited. π (also notice there's no -i or -n in the synopsis up there β that's not me being lazy, that's just facts β¨)
heads up for real: with -i, the POSIX ID you see may be ephemeral if no mapping exists, and mixed SMB/POSIX ownership makes the reported total usage and quota belong to the POSIX entity for both. read that bit twice, bestie. π
π SEE ALSO π
and that's the whole page, periodt π go forth and check your quotas, you gorgeous data-wrangling legend π§π
this lil manual page came from OpenZFS and is dated July 11, 2022 β stay slay, stay snapshot-safe, mwah π
π¦ where this page comes from
- alpine 3.23: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- alpine 3.24: zfs-doc 2.4.4-r0 Β· CDDL-1.0
- nixos 26.05: zfs-user 2.4.4
- nixpkgs unstable: zfs-user 2.4.4
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5 Β· CDDL-1.0
- ubuntu resolute: zfsutils-linux 2.4.1-1ubuntu5.1 Β· CDDL-1.0
- ubuntu stonking: zfsutils-linux 2.4.4-1ubuntu4 Β· CDDL-1.0
- π the page's license: CDDL-1.0
- Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved
- Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
- Copyright (c) 2011, 2019 by Delphix. All rights reserved
- Copyright (c) 2013 by Saso Kiselkov. All rights reserved
- Copyright (c) 2014, Joyent, Inc. All rights reserved
- Copyright (c) 2014 by Adam Stevko. All rights reserved
- Copyright (c) 2014 Integros [integros.com]
- Copyright 2019 Richard Laager. All rights reserved
- Copyright 2018 Nexenta Systems, Inc
- Copyright 2019 Joyent, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms