Forrest logo
back to the zfs tool

zfs:tldr:f1e66

zfs: Change mountpoint for a filesystem.
$ zfs set mountpoint=${-my-mount-path} ${pool_name-filesystem_name}
try on your machine

This command is utilizing the zfs set command in the ZFS file system to set the mount point for a specific file system.

Here's a breakdown of the command:

zfs set: This is the ZFS command used to modify properties of a ZFS file system.

mountpoint=${-my-mount-path}: This is the property being modified. The mountpoint property determines the path in the file system hierarchy where the ZFS file system will be mounted. ${-my-mount-path} is a placeholder for the actual mount path, so you need to replace it with the desired mount path.

${pool_name-filesystem_name}: This specifies the pool and file system where the mountpoint property should be modified. ${pool_name} should be replaced with the name of the pool containing the file system, and ${filesystem_name} should be replaced with the name of the file system that you want to modify.

In summary, this command is used to set the mount point for a specific ZFS file system by modifying the mountpoint property.

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