0
votes
3answers
379 views

extract single file from huge tgz file

I have a huge tar file (about 500G) and I wan't to extract just a single file from it. However, when I run tar -xvf file.tgz path/to/file it seems like it is still loading the whole contents into ...
0
votes
2answers
705 views

How to open big tar.gz file

I created a big tar.gz file, following this guide. It is a daily backup file. My computer has 3 GB of RAM and is running Windows 7. My biggest archive is 183 GB, containing pictures and documents. ...
1
vote
1answer
3k views

How to extract .tar.bz2 directly? (avoiding a folder creation)

I always extract this kind of files using on the route where I want those files: # tar -xvf file.tar.bz2 But it always creates a folder called "file" (for this example) and stores all inside it. ...
0
votes
2answers
69 views

Extract a section of a tgz file

I have a 28.5 GB .tgz file which was created on the command line of a Linux computer, compressing one folder and all its many many subfolders. I now want to extract a single sub-sub folder from that ...
13
votes
4answers
18k views

Extract 7z files with standard linux tools?

I know that you can extract .7z files with 7-zip. Is there another standard linux program that can do this? Maybe one of these tar bzip2 xz gzip I will add that bsdtar can do this, but is not ...
0
votes
2answers
1k views

How to recursively extract all .tar and .tgz file zipped in a .tgz file using 7zip command line version

I'm using 7zip cmd line version in my app (written in Python on Win 7 box) to extract .tgz files. Although I'm using the -r switch, the .tar and .tgz subdirectories are not extracted. Can someone tell ...
0
votes
1answer
59 views

Modifying the path inside an archive for extraction

I would like to change the path of extraction of a .tar.gz archive. The files are supposed to extract as ./1/2/3/4/files, ./1/2/3files and so on. The .1/2 part of those is common to all the files. ...
1
vote
1answer
6k views

tar shows “is not a bzip2 file” error when uncompressing a .tar.bz file

I've a data_or.tar.bz file I tried to extract it with $ tar xjvf data_or.tar.bz Output is bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error is not recoverable: exiting ...
2
votes
1answer
998 views

How can I extract only some specific folders from a tar.gz archive?

Let's say I have the archive website.tar.gz, inside is the following folder structure : home -mike -www -coolwebsite file1 file2 file3 etc. When I ...
2
votes
2answers
8k views

tar command - how to extract one file to specific directory

Is there a way to extract a single file from a tar file to a specific directory? In fact, I am dealing with a .tgz file so, I am attempting something like this : gunzip -c mytargzfile.tgz | tar xvf - ...
7
votes
3answers
2k views

In place extract tar archive

I have a little dilemma here... I needed to move about 70 GB worth of files from one of my servers to the other, so I decided that tarring them up and sending the archive would be the fastest way. ...
0
votes
2answers
191 views

Untar with date filter

Is there any way to untar and only extract those files that are above a certain date including directory structure?? I restored a backup on a play server but it was a few days old. However I have a ...
3
votes
2answers
2k views

Specify root dir inside tarball

Is there a way to execute tar cjvf foo.tar.bz2 project-root Such that when the tarball is extracted, it doesn't extract to project-root, but instead extracts to something else? i.e. tar xjvf ...