snippetbashTip
compsize — Calculate the compression ratio of a set of files on a btrfs filesystem. See also: `btrfs filesystem
Viewed 0 times
thecommandcompsizecompressioncliratiosetcalculate
linux
Problem
How to use the
compsize command: Calculate the compression ratio of a set of files on a btrfs filesystem. See also: btrfs filesystem. More information: <https://manned.org/compsize>.Solution
compsize — Calculate the compression ratio of a set of files on a btrfs filesystem. See also: btrfs filesystem. 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}}Code Snippets
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}}Context
tldr-pages: linux/compsize
Revisions (0)
No revisions yet.