Forrest logo
tool overview
On this page you find all important commands for the CLI tool compsize. If the command you are looking for is missing please ask our AI.

compsize

Compsize is a command line tool used to determine the actual sizes of compressed files or directories. It provides accurate information on the size reduction achieved by compression algorithms.

The tool works by analyzing the metadata of compressed files, including their headers and footers, to calculate the compressed size accurately. It supports various compression formats, including gzip, bzip2, lz4, and more.

Compsize displays the original size and the actual compressed size of each file or directory, allowing users to assess the effectiveness of compression. It shows the compression ratio, expressed as a percentage, indicating how much space has been saved.

By providing a detailed breakdown of sizes, compsize helps users identify large files or directories that are not effectively compressed. This information can be useful for optimizing the compression settings or finding files that may not benefit significantly from compression.

The tool is lightweight and fast, making it useful for analyzing large amounts of compressed data. It works efficiently on both local files and remote directories via SSH.

Compsize is open source software, distributed under the GNU General Public License (GPLv2). It is available for various Linux distributions, including Debian, Ubuntu, Fedora, and Arch Linux. It can be easily installed using package managers like apt or dnf.

Compsize can be used as a standalone utility or integrated into shell scripts or automation pipelines. Its simple command syntax and output format make it easy to incorporate into various workflows.

Overall, compsize provides valuable insights into the effectiveness of compression, helping users optimize storage usage and make informed decisions about compression settings.

List of commands for compsize:

  • compsize:tldr:2ec78 compsize: Don't traverse filesystem boundaries.
    $ sudo compsize --one-file-system ${filename_or_directory}
    try on your machine
    explain this command
  • compsize:tldr:8e585 compsize: Show raw byte counts instead of human-readable sizes.
    $ sudo compsize --bytes ${filename_or_directory}
    try on your machine
    explain this command
  • compsize:tldr:a4ac9 compsize: Calculate the current compression ratio for a file or directory.
    $ sudo compsize ${filename_or_directory}
    try on your machine
    explain this command
tool overview