Show raw byte counts instead of human-readable sizes

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://github.com/kilobyte/compsize>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo compsize --bytes {{path/to/file_or_directory}}

click the source code to copy install compsize on any operating system with command-not-found.com