Sunday, December 11, 2022

[FIXED] What is a specific command for zipping and compressing multiple files with lzma2 on linux command line?

Issue

Can you give an example for compressing files with lzma2? I searched on Google but I didn't find any examples that I could understand.


Solution

You can also use the lzma binary or the xz with the --format=lzma argument.,

If you want to compress a set of files, I would recommend using tar to glue them together and then lzma, as for example:

$ tar --lzma -cf foo.tar.lzma file1 file2 ...
$ file foo.tar.lzma
foo.tar.lzma: LZMA compressed data, streamed


Answered By - Breno Leitão
Answer Checked By - Pedro (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.