HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

zfs — Manage ZFS filesystems. More information: <https://manned.org/zfs>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandzfsclimanageinformationfilesystemsmore

Problem

How to use the zfs command: Manage ZFS filesystems. More information: <https://manned.org/zfs>.

Solution

zfs — Manage ZFS filesystems. More information: <https://manned.org/zfs>.

List all available zfs filesystems:
zfs list


Create a new ZFS filesystem:
zfs create {{pool_name/filesystem_name}}


Delete a ZFS filesystem:
zfs destroy {{pool_name/filesystem_name}}


Create a Snapshot of a ZFS filesystem:
zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}


Enable compression on a filesystem:
zfs set compression=on {{pool_name/filesystem_name}}


Change mountpoint for a filesystem:
zfs set mountpoint=/{{path/to/mount_point}} {{pool_name/filesystem_name}}

Code Snippets

List all available zfs filesystems

zfs list

Create a new ZFS filesystem

zfs create {{pool_name/filesystem_name}}

Delete a ZFS filesystem

zfs destroy {{pool_name/filesystem_name}}

Create a Snapshot of a ZFS filesystem

zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}

Enable compression on a filesystem

zfs set compression=on {{pool_name/filesystem_name}}

Context

tldr-pages: common/zfs

Revisions (0)

No revisions yet.