← 返回命令列表

Linux command

btrfs-subvolume 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Create

sudo btrfs subvolume create path/to/new_subvolume

List

sudo btrfs subvolume list path/to/filesystem

Delete

sudo btrfs subvolume delete path/to/subvolume

Example

sudo btrfs subvolume snapshot -r path/to/source path/to/target

Example

sudo btrfs subvolume snapshot path/to/source path/to/target

Show

sudo btrfs subvolume show path/to/subvolume

说明

btrfs subvolume manages btrfs subvolumes and snapshots. Subvolumes are separately mountable filesystem trees that can have independent snapshot and quota policies. Snapshots are point-in-time copies that initially share all data with their source.

参数

create
Create a new empty subvolume
list
List all subvolumes in the filesystem
delete
Delete a subvolume or snapshot
snapshot
Create a snapshot of an existing subvolume
show
Display detailed information about a subvolume
-r, --readonly
Create a read-only snapshot
get-default
Get the default subvolume
set-default
Set the default subvolume

FAQ

What is the btrfs-subvolume command used for?

btrfs subvolume manages btrfs subvolumes and snapshots. Subvolumes are separately mountable filesystem trees that can have independent snapshot and quota policies. Snapshots are point-in-time copies that initially share all data with their source.

How do I run a basic btrfs-subvolume example?

Run `sudo btrfs subvolume create path/to/new_subvolume` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create do in btrfs-subvolume?

Create a new empty subvolume