scripts/compression_utils/README

32 lines
1.1 KiB
Plaintext

# lz and uz #
The lz script emulates and extends commands lz and uz from the mtools.
It handles: tar, tar.gz, tar.bz2, tar.xz, tar.lzma and tar.Z (and
associated 3-characters extensions: tgz, tbz, tb2, tlz, txz, taz)
through the standards options of GNU Tar.
Note that you need GNU Tar, at least version 1.20 to support LZMA
compressed archives, and version 1.22 for XZ compressed ones.
If the script name is "lz", the archive content is displayed. If the
name is "uz", it is extracted.
To install lz and uz, move put script in a directory in the PATH (for
instance /usr/local/bin) and hard link it to uz:
cp lz /usr/local/bin
ln /usr/local/bin/{lz,uz}
# xzize #
The xzize script compresses an uncompressed file, or recompresses a
compressed file to xz (with maximum compression level).
Known compression formats are GZip (.gz), BZip2 (.bz2), LZMA (.lzma),
and Lempel-Ziv (.Z).
In case of recompression, the original compressed file is keeped. In
case of compression (i.e. when the suffix of the file does not
correspond to a known compression format), the original uncompressed
file is removed.