Tagged Questions
1
vote
1answer
151 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
44 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 ...
2
votes
3answers
6k 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
0
votes
1answer
823 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
48 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
4k 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
343 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
6k 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
1k 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
179 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 ...
2
votes
1answer
908 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 ...