btrfs
Quick Reference
Command Name:
btrfs
Category:
file management
Platform:
Linux
Basic Usage:
Common Use Cases
- 1
Filesystem management
Create and manage Btrfs filesystems
- 2
Data snapshots
Create and manage filesystem snapshots
- 3
Storage optimization
Optimize storage usage with advanced features
- 4
Data integrity
Ensure data integrity with checksums and error correction
Syntax
btrfs [COMMAND] [OPTIONS] <args>
Options
| Command Group | Description |
|---|---|
balance |
Balance data across devices |
device |
Manage devices in the filesystem |
filesystem |
Manage filesystem parameters |
subvolume |
Create and manage subvolumes |
scrub |
Verify data and metadata integrity |
quota |
Manage filesystem quotas |
snapshot |
Create read-only or writable point-in-time copies |
send/receive |
Serialize and transfer subvolumes between filesystems |
restore |
Restore files from Btrfs snapshots |
inspect-internal |
Debug tools for Btrfs developers |
Common Options:
| Option | Description |
|---|---|
--help |
Display help for the command |
-v, --verbose |
Increase verbosity of output |
-q, --quiet |
Suppress unimportant output messages |
Examples
How to Use These Examples
The examples below show common ways to use the btrfs command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
btrfs filesystem show
btrfs subvolume list /mnt/btrfs
btrfs subvolume create /mnt/btrfs/newsub
Advanced Examples:
btrfs balance start /mnt/btrfs