LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mkzftree

creates compressed filesystem trees

TLDR

Compress directory tree
$ mkzftree [input/] [output/]
copy
Set compression level (1-9, default 9)
$ mkzftree -z [6] [input/] [output/]
copy
Force compression of every file (even if larger after compression)
$ mkzftree -f [input/] [output/]
copy
Verbose output
$ mkzftree -v [input/] [output/]
copy
Parallelize compression with N threads
$ mkzftree -p [4] [input/] [output/]
copy
Uncompress a zisofs tree back to plain files
$ mkzftree -u [input/] [output/]
copy

SYNOPSIS

mkzftree [options] input output

DESCRIPTION

mkzftree creates compressed directory trees suitable for use with transparent decompression on ISO 9660 (zisofs) filesystems. Files in the output tree are individually compressed using zlib, and the directory structure is preserved.The compressed trees are designed to be used with mkisofs (or genisoimage) with the `-z` option to create ISO images where files are transparently decompressed at read time on Linux systems with zisofs support.

PARAMETERS

INPUT

Source directory (or file with -F).
OUTPUT
Destination directory/file.
-z, --level LEVEL
Compression level 1-9 (default: 9). Lower is faster, higher compresses more.
-f, --force
Always compress, even if the result is larger than the original.
-u, --uncompress
Uncompress a previously compressed tree.
-p, --parallelism N
Number of parallel compression threads.
-F, --file
Treat INPUT as a single file rather than a directory tree.
-x, --one-filesystem
Do not cross filesystem boundaries; create directory stubs at mount points.
-X, --strict-one-filesystem
Do not cross filesystem boundaries and do not create stubs.
-l, --local
Do not recurse into subdirectories (still creates the directories).
-s, --sloppy
Relax preservation of file modes, times, and ownership.
-v, --verbose
Increase verbosity.
-q, --quiet
Suppress all messages including errors.
-h, --help
Display help information.
-w, --version
Display version information.

CAVEATS

Part of zisofs-tools. Transparent decompression requires Linux kernel zisofs support. Only useful for ISO 9660 filesystem creation; not a general-purpose compression tool.

HISTORY

mkzftree is part of zisofs-tools for creating transparent compression on ISO9660 filesystems.

SEE ALSO

Copied to clipboard
Kai