Forrest logo
back to the zfs tool

zfs:tldr:db6c4

zfs: Create a new ZFS filesystem.
$ zfs create ${pool_name-filesystem_name}
try on your machine

This command creates a new ZFS (Zettabyte File System) dataset within a specified pool. The command has the following syntax: zfs create ${pool_name-filesystem_name} Here's the breakdown of the command: - zfs: This is the command-line utility that interacts with ZFS. - create: This is the subcommand used for creating new datasets. - ${pool_name-filesystem_name}: This is a variable representing the name of the pool and the desired filesystem name. The ${pool_name} part should be replaced with the name of the existing pool where you want to create the dataset. The - separates the pool name from the filesystem name, and ${filesystem_name} should be replaced with the desired name of the new dataset. For example, if you want to create a dataset named "data" within a pool named "tank", you would run: zfs create tank-data This command creates a new dataset named "data" within the "tank" pool. Datasets are used to organize and manage file systems in ZFS. They can be used to create separate spaces for different purposes within a ZFS pool, allowing for better control over storage resources, access permissions, and data management.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the zfs tool