0
votes
3answers
47 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
-1
votes
2answers
100 views

How compress the compressed file in unix

Is it possible to compress the file that is already compressed? Example: Given a compressed file such as file.zip, would it be possible to gzip it into another compressed file in UNIX like this: ...
0
votes
3answers
379 views

What is the equivalent unix command to a Mac OSX “Compress” menu action?

When I right-click a file in Mac OSX and select "Compress 'File Name'", what is the equivalent bash or terminal command to get the same result? Is it just gzip -9 /path/to/filename?
0
votes
0answers
67 views

LZMA Based Archiving on Linux

I am trying to build an archiving system. I have tested out LZMA compression algorithm, and it provides very good results. However, I need the ability to add and retrieve(will remain in the archive) ...
1
vote
2answers
4k views

Compress files from OS X terminal?

In the Finder, there is this wonderful ability to right click on a file or directory, select compress from the drop-down, and end up with a zipped file. Is it possible to do the same thing from the ...
1
vote
2answers
243 views

Looking for Unix tool/script that, given an input path, will compress every batch of uncompressed 100MB text files into a single gzip file

I have a dump of thousands of small text files (1-5MB) large, each containing lines of text. I need to "batch" them up, so that each batch is of a fixed size - say 100MB, and compress that batch. Now ...
0
votes
1answer
1k views

Unzip an archive that was split into 2 files

I have 2 zip files that were split using: zip -r -s 15 my_file.zip my_file.pdf Now I have 2 files: my_file.zip my_file.z01 How can I unzip them? Doing unzip my_file.zip I get: Archive: ...
2
votes
1answer
170 views

Check level of compression of an image

Is there a unix command to check the level of compression or the compression ratio for an image (png,jpeg,gif)? The mac based mdls command displayed a lot of metadata information, but didn't mention ...
1
vote
1answer
2k views

how do I compress all files within a folder on Unix?

I've been unable to compress the contents of a folder on Unix, note that I don't want to compress the directory itself but the contents inside. so far.. to compresss the files I use: compress ...
1
vote
2answers
648 views

Excluding Path While Compressing with TAR/GZ

I am compressing list of files like this: tar cvzf mycompress.tar.gz /dir1/dir2/file1.txt /dir1/dir2/file2.txt However when I uncompressed them the directory /dir1/dir2/ is still preserved. How to ...
4
votes
2answers
274 views

Unix/Linux program that can handle all popular compression/archiving formats (e.g.tar, gzip, bzip2, zip)?

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar). Is there a program out there that can just Do ...
0
votes
3answers
11k views

How do I compress the contents of a folder using 'tar' over SSH?

How do I compress the contents of a folder using the tar command on an Unix system over SSH?
10
votes
4answers
9k views

.tar files without directory structure

I'm .taring some files with the path example/super_user/Output.*. The resulting .tar looks like this: + example + super_user - Output.zip - Output.xml - Output.txt ...
4
votes
3answers
9k views

How to compress a file in UNIX?

I want to do an ordinary "zip", so my CW3 file becomes CW3.zip. I have tried to use some example commands found on the internet but they don't seem to work. I have tried the following, resulting in ...
0
votes
2answers
463 views

Tar: Update archive

I have compressed a folder using tar like this: tar cvfz folder.tar.gz folder/ Now, say I have changed some of the files in that folder, added some and removed some. And now I want to update my ...