0
votes
0answers
12 views

CRC error when trying to open archive with gzip/tar

When I run the command tar xvf ns-allinone-2.28.tar.gz it gives the following error: ns-allinone-2.28/tclcl-1.16/tkAppInit.cc gzip: stdin: invalid compressed data--crc error tar: Child returned ...
0
votes
3answers
28 views

can't compress whole file with tar?

I'm not an expert with tar (xz) but I have a video (FLV) and it's size 95MB I would like to compress it and I was using this command XZ_OPT=-9 tar -Jcvf myfile.tar.xz 1.flv (I got this from a ...
4
votes
5answers
854 views

What is the difference between different “compression” systems?

I've always used TAR and ZIP for compression, but recently I have heard about the *.Z compression algorithm. This brought up a question for me: With all of these compression systems, which one is ...
7
votes
3answers
20k views

how to extract tar.7z files from command line? [duplicate]

Is there a way to extract files of tar.7z format using command line tools in Ubuntu?
0
votes
1answer
56 views

Best container/compressor for nesting

Is there a format, such as 7zip, zip, tar.gz etc that that 'glues' pre-compressed folders together quickly? At the moment, it appears that archiving pre-compressed files/folders has very little ...
0
votes
3answers
175 views

Which archive format does not read/extract whole archive when extracting single file?

As the title states, I have a few large archives (currently in .7z and .tar.gz format) stored on a remote location which I access via sshfs. I often find myself needing to extract one or two files ...
5
votes
2answers
4k views

How do I create tar.7z file from the command line?

I would like to zip up my homework from last year. How do I tar and zip the whole folder from command line Ubuntu (I don't have GUI).
12
votes
3answers
3k views

Any linux command to perform parallel decompression of tar.bz2 file?

I have a rather large file (~50GB) and it takes some time to run tar xvf file.tar.bz2 on it. I'm aware of programs that can do parallel compression for bzip2 files but unaware of programs that can ...
0
votes
1answer
709 views

compressing a list of files by using tar

what I am trying to do is to compress a list of files using tar. So what I am doing is sudo tar -pcf filename.tgz `cat filename.list` so if there is a directory on the list like this ...
1
vote
2answers
3k views

Why compressed directories cannot be extracted in /opt?

I am not able to uncompress a file with .tar.gz extension Did sudo tar -xvzf ~/Downloads/file.tar.gz /opt/ but no success. it says: tar: /opt: Not found in archive tar: Exiting with failure status ...
0
votes
1answer
741 views

Using tar, the entire folder structure is including, I don't want that

I am taring a folder and for some reason the entire directory structure that preceds the folder I am tarring is included. I am doing this in a script like: 'tar czf ' + dir + '/asdf.tgz ' + dir + ...
1
vote
1answer
494 views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...
5
votes
1answer
357 views

How to archive with ignoring files larger than 100MB

I'm trying to archive files with tar and ignoring files larger than 100MB. Is that possible? PS: Not have to use tar.
124
votes
6answers
188k views

How do I uncompress a tarball that uses .xz?

I'm used to extracting tarballs with a -xfz flag, which handles gzip and bzip2 archives. Recently I've run into a .tar.xz file and I would like to uncompress it in one step using tar, how can I do ...
4
votes
3answers
974 views

What's the difference between a compressed folder (with files) and a compressed Tar archive?

I don't understand the use of TAR. My understanding is it pulls together many files into one file. But doesn't putting files in a folder do this? Using ZIP, I put files I want to archive in a folder ...
7
votes
2answers
27k views

Compress in .tgz

I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??