« Back to overview

Windows NTFS has an option to transparantly compress files and directories.

This is missing in MacOs, but you can compress files that are mostly read only with HFS compression (also works on APFS).

There is a nice tool in brew so you can compress a single file on the command line.

Limitations

  • compression will be lost if the file is written to
  • not for files > 2Gb

install afsctool
brew install afsctool
compress a file
afsctool -cv <FILE>