btrfs <command> [<args>]
The btrfs utility is a toolbox for managing btrfs filesystems. There are command groups to work with subvolumes, devices, for whole filesystem or other specific actions. See section COMMANDS.
Any command name can be shortened as far as it stays unambiguous, however it is recommended to use full command names in scripts. All command groups have their manual page named btrfs-<group>.
For example: it is possible to run btrfs sub snaps instead of btrfs subvolume snapshot. But btrfs file s is not allowed, because file s may be interpreted both as filesystem show and as filesystem sync.
If the command name is ambiguous, the list of conflicting options is printed.
For an overview of a given command use btrfs command --help or btrfs [command...] --help --full to print all available options.
Balance btrfs filesystem chunks across single or several devices.
See btrfs-balance(8) for details.
Do off-line check on a btrfs filesystem.
See btrfs-check(8) for details.
Manage devices managed by btrfs, including add/delete/scan and so on.
See btrfs-device(8) for details.
Manage a btrfs filesystem, including label setting/sync and so on.
See btrfs-filesystem(8) for details.
Debug tools for developers/hackers.
See btrfs-inspect-internal(8) for details.
Get/set a property from/to a btrfs object.
See btrfs-property(8) for details.
Manage quota group(qgroup) for btrfs filesystem.
See btrfs-qgroup(8) for details.
- Manage quota on btrfs filesystem like enabling/rescan and etc.
Receive subvolume data from stdin/file for restore and etc.
See btrfs-receive(8) for details.
Replace btrfs devices.
See btrfs-replace(8) for details.
Try to rescue damaged btrfs filesystem.
See btrfs-rescue(8) for details.
Try to restore files from a damaged btrfs filesystem.
See btrfs-restore(8) for details.
Scrub a btrfs filesystem.
See btrfs-scrub(8) for details.
Send subvolume data to stdout/file for backup and etc.
See btrfs-send(8) for details.
Create/delete/list/manage btrfs subvolume.
See btrfs-subvolume(8) for details.
btrfs returns a zero exit status if it succeeds. Non zero is returned in case of failure.
btrfs is part of btrfs-progs. Please refer to the btrfs wiki m[blue]http://btrfs.wiki.kernel.orgm for further details.