mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
23 lines
613 B
Plaintext
23 lines
613 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|