I need to compress the all of the contents of a directory into a single lz4
archive, i couldn't figure out a way to do that. I already have read all the available parameters, still no success. Kindly suggest me how can i achieve this.
Asked
Active
Viewed 6,892 times
6

Pravesh Agrawal
- 869
- 1
- 11
- 27
1 Answers
13
Things like lz4, gzip, bzip2, and xz simply compress a stream of bytes. You need another utility, like tar, to convert a set of directories and files into a stream of bytes. The output of tar is then fed to the compressor. That's why you see archives with names like tar.gz or tar.xz.

Chris Stryczynski
- 30,145
- 48
- 175
- 286

Mark Adler
- 101,978
- 13
- 118
- 158