Linux command
unlzma 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Decompress file
unlzma [file.lzma]
Keep original
unlzma -k [file.lzma]
To stdout
unlzma -c [file.lzma]
Force overwrite
unlzma -f [file.lzma]
Verbose
unlzma -v [file.lzma]
说明
unlzma decompresses files that were compressed with the LZMA (Lempel-Ziv-Markov chain Algorithm) compression format. It is functionally equivalent to running xz --format=lzma --decompress and is provided as a convenience command within the xz-utils package. By default, unlzma replaces the compressed .lzma file with the decompressed output, removing the original. The -k flag preserves the original compressed file, and -c writes the decompressed data to standard output for piping to other commands. The LZMA format is a legacy compression format that has been largely superseded by the XZ format, which uses the improved LZMA2 algorithm with better multi-threading support. unlzma remains useful for decompressing older archives and for compatibility with systems that still use the .lzma format.
参数
- -k
- Keep original.
- -c
- Write to stdout.
- -f
- Force overwrite.
- -v
- Verbose mode.
- -q
- Quiet mode. Specify twice to suppress errors.
- -T, --threads _N_
- Use up to N threads for decompression (xz 5.2+).
FAQ
What is the unlzma command used for?
unlzma decompresses files that were compressed with the LZMA (Lempel-Ziv-Markov chain Algorithm) compression format. It is functionally equivalent to running xz --format=lzma --decompress and is provided as a convenience command within the xz-utils package. By default, unlzma replaces the compressed .lzma file with the decompressed output, removing the original. The -k flag preserves the original compressed file, and -c writes the decompressed data to standard output for piping to other commands. The LZMA format is a legacy compression format that has been largely superseded by the XZ format, which uses the improved LZMA2 algorithm with better multi-threading support. unlzma remains useful for decompressing older archives and for compatibility with systems that still use the .lzma format.
How do I run a basic unlzma example?
Run `unlzma [file.lzma]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -k do in unlzma?
Keep original.