Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-20 00:24:01 +00:00
parent 16134c78d9
commit 1ec3810968
41 changed files with 352 additions and 139 deletions

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- Add one or more devices to a btrfs filesystem:
`sudo btrfs device add {{path/to/block_device1 path/to/block_device2 ...}} {{path/to/btrfs_filesystem}}`
`sudo btrfs {{[d|device]}} {{[a|add]}} {{path/to/block_device1 path/to/block_device2 ...}} {{path/to/btrfs_filesystem}}`
- Remove a device from a btrfs filesystem:
`sudo btrfs device remove {{path/to/device1|device_id1 path/to/device2|device_id2 ...}}`
`sudo btrfs {{[d|device]}} {{[rem|remove]}} {{path/to/device1|device_id1 path/to/device2|device_id2 ...}}`
- Display error statistics:
`sudo btrfs device stats {{path/to/btrfs_filesystem}}`
`sudo btrfs {{[d|device]}} {{[st|stats]}} {{path/to/btrfs_filesystem}}`
- Scan all disks and inform the kernel of all detected btrfs filesystems:
`sudo btrfs device scan {{[-d|--all-devices]}}`
`sudo btrfs {{[d|device]}} {{[sc|scan]}} {{[-d|--all-devices]}}`
- Display detailed per-disk allocation statistics:
`sudo btrfs device usage {{path/to/btrfs_filesystem}}`
`sudo btrfs {{[d|device]}} {{[u|usage]}} {{path/to/btrfs_filesystem}}`