mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
689 B
Plaintext
34 lines
689 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|