Skip to content
Advertisement

Tag: compression

How to generate a PAX Tar archive with an Global Extended Attributes (‘g’) initial entry?

In Linux, I am trying to generate an uncompressed PAX archive containing a Global Extended Attributes entry using either one of the following commands: A) Specifying the pax options (implies –xattrs): B) Specifying xattrs support (implies –format=pax): Both commands generate a file successfully, but when I open the file with my hex editor, the first entry has the ‘x’ type,

Compressing ZIP files in a linux server with PHP

I am trying to create a .zip file of a folder in linux. First I go where the compressed folder is: The folder test has the folder testzip which should be zipped and sent somewhere else: This should create testzip.zip. Somehow this doesn’t work. Could anyone help? Answer Try with instead of — EDIT — Reading the comment of Mark

Difference between archiving and compression

What is the difference between Archiving and compression in Linux? We have different commands for both which we can combine too.. but what exactly are they? Answer Archiving means that you take 10 files and combine them into one file, with no difference in size. If you start with 10 100KB files and archive them, the resulting single file is

Unzipping bz2 file

I have the following command to open a tbz file: The compressed file is about 15 GB and when it is expanded it is about 500GB or so. This operation on an ec2-4x-large operation takes roughly 1h40m. Is there a way to optimize this operation? What would be the fastest way to do the above operation? Answer A couple possibilities

Compress files while reading data from STDIN

Is it possible to compress (create a compressed archive) data while reading from stdin on Linux? Answer Yes, use gzip for this. The best way is to read data as input and redirect the compressed to output file i.e. cat test.csv will send the data as stdout and using pipe-sign gzip will read that data as stdin. Make sure to

Advertisement