github twitter email rss
Compress files in macOS with HFS+
0001 Jun 1
One minute read

Compress files in macOS with HFS+

Report if folder contains HFS+ compressed files:

afsctool -fvvi ~/source

    Number of HFS+ compressed files: 342363
    Total number of files: 401745
    Total number of file hard links: 241
    Total number of folders: 92784
    Total number of folder hard links: 0
    Total number of items (number of files + number of folders): 494529
    Folder size (uncompressed): 9506103711 bytes / 10.54 GB (gigabytes) / 9.81 GiB (gibibytes)
    Folder size (compressed - decmpfs xattr): 4848614087 bytes / 5.11 GB (gigabytes) / 4.76 GiB (gibibytes)
    Folder size (compressed): 5148931346 bytes / 5.41 GB (gigabytes) / 5.04 GiB (gibibytes)
    Compression savings: 45.8%
    Approximate total folder size (files + file overhead + folder overhead): 5628567936 bytes / 5.63 GB (gigabytes) / 5.24 GiB (gibibytes)

Apply HFS+ compression to file or folder:

afsctool -c -l9 ~/

Back to posts


comments powered by Disqus