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/compsize.md
Managor 1f63ed5e22
linux*: refresh old pages part 1 (#16251)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-25 04:34:04 +03:00

565 B

compsize

Calculate the compression ratio of a set of files on a btrfs filesystem. See also btrfs filesystem for recompressing a file by defragmenting it. More information: https://manned.org/compsize.

  • Calculate the current compression ratio for a file or directory:

sudo compsize {{path/to/file_or_directory}}

  • Don't traverse filesystem boundaries:

sudo compsize {{[-x|--one-file-system]}} {{path/to/file_or_directory}}

  • Show raw byte counts instead of human-readable sizes:

sudo compsize {{[-b|--bytes]}} {{path/to/file_or_directory}}