commands.sh

compsize

linux

Calculate the compression ratio of a set of files on a btrfs filesystem. See also: `btrfs filesystem`.

More info →

Options (2)

-x, --one-file-systemboolean

Don't traverse filesystem boundaries

Example: sudo compsize {{[-x|--one-file-system]}} {{path/to/file_or_directory}}
-b, --bytesboolean

Show raw byte counts instead of human-readable sizes

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

Examples (3)

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
made by @shridhargupta | data from tldr-pages