There is almost nothing to do. Basically, a file is compressed with the command `chattr +c filename', and decompressed with the command `chattr -c filename'. You can also do `chattr +c' (etc.) on a directory. The directory itself won't be compressed, but any new files created in that directory inherit that directory's compress flag and compression algorithm and cluster size.(1)
Use lsattr
to see if a file should be compressed or not, and to
see what compression algorithm and cluster size will be used. Note that
the output from lsattr
doesn't necessarily mean what one might
think if one hasn't read the lsattr
documentation. See section lsattr
notes.
Use e2ratio
to see how much disk space is used by the compressed
form compared to the uncompressed form.
Go to the first, previous, next, last section, table of contents.