This topic created in 2594 days ago, the information mentioned may be changed or developed.
xz -help
Usage: xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.
-z, --compress force compression
-d, --decompress force decompression
-t, --test test compressed file integrity
-l, --list list information about .xz files
-k, --keep keep (don't delete) input files
-f, --force force overwrite of output file and (de)compress links
-c, --stdout write to standard output and don't delete input files
-0 ... -9 compression preset; default is 6; take compressor *and*
decompressor memory usage into account before using 7-9!
-e, --extreme try to improve compression ratio by using more CPU time;
does not affect decompressor memory requirements
-q, --quiet suppress warnings; specify twice to suppress errors too
-v, --verbose be verbose; specify twice for even more verbose
-h, --help display this short help and exit
-H, --long-help display the long help (lists also the advanced options)
-V, --version display the version number and exit
With no FILE, or when FILE is -, read standard input.
7 replies 2019-03-25 17:13:53 +08:00  | | 1 Yorwba Mar 24, 2019 via Android 可以考虑用 tqdm ( https://tqdm.github.io/)比如 seq 1000000 | tqdm --bytes | xz - | tqdm --bytes --position 2 > /dev/null 6.57MB [00:11, 598kB/s] 183kB [00:11, 16.0kB/s] 前者是未压缩的输入,后者是已压缩的输出。 |
 | | 3 Tyanboot Mar 24, 2019 2 xz 不是有进度条的吗,加一个 -v 参数。 |