Go to the first, previous, next, last section, table of contents.


How do I use e2compr?

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.

Use e2ratio to see how much disk space is used by the compressed form compared to the uncompressed form.

You can also try the `-u' or `-r' options to lsattr. (The difference is that, for directories, e2ratio finds the disk usage of the whole directory tree, like du, whereas `lsattr -u' only shows the space taken by the directory file, like `ls -s'.)


Go to the first, previous, next, last section, table of contents.