1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/btrfs-filesystem.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

922 B

btrfs filesystem

Manage btrfs filesystems. More information: https://btrfs.readthedocs.io/en/latest/btrfs-filesystem.html.

  • Show filesystem usage (optionally run as root to show detailed information):

btrfs filesystem usage {{path/to/btrfs_mount}}

  • Show usage by individual devices:

sudo btrfs filesystem show {{path/to/btrfs_mount}}

  • Defragment a single file on a btrfs filesystem (avoid while a deduplication agent is running):

sudo btrfs filesystem defragment {{[-v|--verbose]}} {{path/to/file}}

  • Defragment a directory recursively (does not cross subvolume boundaries):

sudo btrfs filesystem defragment {{[-v|--verbose]}} -r {{path/to/directory}}

  • Force syncing unwritten data blocks to disk(s):

sudo btrfs filesystem sync {{path/to/btrfs_mount}}

  • Summarize disk usage for the files in a directory recursively:

sudo btrfs filesystem du {{[-s|--summarize]}} {{path/to/directory}}