Linux command
mkzftree 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Compress directory tree
mkzftree [input/] [output/]
Set compression level
mkzftree -z [6] [input/] [output/]
Force
mkzftree -f [input/] [output/]
Verbose output
mkzftree -v [input/] [output/]
Parallelize
mkzftree -p [4] [input/] [output/]
Uncompress
mkzftree -u [input/] [output/]
说明
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.
参数
- -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.
FAQ
What is the mkzftree command used for?
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.
How do I run a basic mkzftree example?
Run `mkzftree [input/] [output/]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -z, --level _LEVEL_ do in mkzftree?
Compression level 1-9 (default: 9). Lower is faster, higher compresses more.