linuxsyntaxcommandcompressionlzma

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


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