An archive file format (and the program that reads it) commonly used on Unix and Linux.

learn more… | top users | synonyms

0
votes
2answers
151 views

Used tar with wrong order of arguments and overwrote original file. Any way to recover?

Pretty noob move but used tar with the source and destination file arguments swapped resulting in a complete mess (the source file has been overwritten with another file of same name with size 4kb). ...
1
vote
1answer
3k views

tar error message: “stdin: not in gzip format”

I'm having difficulty with tar on a headless Ubuntu Server 12: ubuntu@domU-12-31-39-02-C0-98:~$ wget -o dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86" ubuntu@domU-12-31-39-02-C0-98:~$ ...
16
votes
4answers
2k views

Undo tar file extraction mess

I just untar'd an archive that produced a mess of files into my tidy directory. For example: user@comp:~/tidy$ tar xvf myarchive.tar file1 file2 dir1/ dir1/file1 dir1/subdir1/ dir1/subdir1/file1 ...
0
votes
2answers
267 views

Seeking a GUI archiver with the ability to exclude files/folders with tickboxes

I've been searching for a GUI tool to create zip, 7-zip or tar archives that will allow me to include and exclude files and folders using a GUI. The dialog during archive creation should look ...
1
vote
1answer
94 views

Guess compressability of a large file

I have a large file (~20 GB) and I want to quickly make an (approximate) estimate of how well it can compress. I want an program which can provide an immediate guess at the compressed filesize, and ...
0
votes
2answers
5k views

tar: This does not look like a tar archive

I split a huge folder: $ tar cvpf - somedir | split -b 50000m … and then I transferred the split files to another server and merged it: $ cat x* > somedir.tar.gz but when I tried to ...
0
votes
2answers
249 views

Combining files in .tar file in Linux

I have a problem with zipping files in .tar file in Linux, but the challange is that when we extract .tar file it shouldn't give us a folder containing files which are zipped . It should give just ...
5
votes
2answers
484 views

How to untar in Emacs dired?

Is there a simple way to untar files in Emacs Dired? Currently I'm doing a M-! tar -xvf <filename>, however I feel like there is be an easier way.
2
votes
5answers
12k views

Linux: what is a most convenient way to see the content of .jar file

What is a most convenient way to see the content of .jar file w/o using unzip/untar commands? What I'd like to do - is to browsing inside using cd command like it is the usual folder, seeing content, ...
0
votes
1answer
3k views

Create a tar and splitting it into multiple archives then putting them back together

I am using the following for creating the tgz files: tar zcf - /usr/folder | split -b 30720m - /usr/archive.tgz Now I get three files: archive.tgzaa, archive.tgzab and archive.tgzac So again I ...
0
votes
1answer
394 views

Elimination of directory structure in a tar.gz file

$ tar -zcvf archive/test.tar.gz files will give me as below : files/ files/1 files/2 files/3 -- $ tar -zcvf archive/test.tar.gz -C files . will give me as below : ./ ./1 ./2 ./3 I am not ...
2
votes
1answer
5k views

Unable to open a tar.gz file

Are there any alternative ways to open a ".tar.gz" file than -xzf or -zxvf or xzvf? I am running Mac OS X 10.7. My command line returns: tar: Unrecognized archive format tar: Error exit delayed from ...
5
votes
3answers
2k views

Use tar vs bzip2 for creating a .tar.bz2 archive?

I just read that tar can create .tar.bz2 files. All this while, I was using tar + bzip2 to do this. I was wondering if there was a difference between using tar to create the archive vs using bzip2? ...
0
votes
1answer
412 views

7-zip archive with hard links?

I see that tar respects hard links $ ln clonezilla.iso test.iso $ tar cfvvJ archive.tar.xz *.iso -rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso hrw-r--r-- Steven 0 2012-03-25 ...
1
vote
2answers
557 views

chdir warning when opening .tar file on OS X

I need to unarchive a file to the /Developer folder. Install Qt for iOS SDK The Qt for iOS SDK has been configured to be installed in the default Xcode installation location /Developer. It ...
1
vote
0answers
99 views

Extracting a tar file containing files with Chinese names will make the filenames illegible

On my Mac OS 10.6.8 I had a directory full of files that had Chinese filenames. I proceeded to run tar czf mydir.tar.gz mydir Now when I untar it with tar xzf mydir.tar.gz, the extracted filenames ...
1
vote
2answers
95 views

How to create an archive without hierarchy

I know there are a lot of questions that seems identical, but I haven't found so far my answer. So let's figure I'm in the current working directory : /test/ I would like to add to an archive ...
0
votes
2answers
394 views

show differences between file and file in (compressed) tar archive

Say I have unpacked a gz-compressed tar file, and do not remember what changes I made to the unpacked files, or I archived a folder a while ago and want to know what has changed to the files since. I ...
13
votes
5answers
22k 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
1answer
209 views

Untar on Solaris 9 : longlink

I'm trying to install MySQL on a solaris 9 machine, and the version of tar on this machine apparently can't handle larger file names. The solution I've found from googling involves downloading GNU ...
2
votes
1answer
705 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 ...
1
vote
2answers
4k views

Untar error: tar: Error exit delayed from previous errors

i'm trying to untar this file to the public_html folder the file is currently in /home/user/ ... the public_html is backed up inside so it should just dump the files into the public_html but nothing ...
0
votes
1answer
514 views

“Unexpected end of file” error while uncompressing lzma file

I've got a file called foo.tar.lzma. While trying to decompress it, I get "Unerwartetes Dateiende" ("Unexpected end of file"). I assume I lost quite a lot of bytes, but 1.1 GB are still there. The ...
0
votes
2answers
188 views

tar doubled the size of the directory

Under Solaris 10 I have directory called apps. I go into that directory and enter: -bash-3.00# du -hs 7.2G . Then I entered: tar -cvf /var/run/apps.tar apps The result: -bash-3.00# ls -lad ...
1
vote
2answers
236 views

Continually compressing a stderr stream

Is there some way to continually compress the output of a program (in almost realtime)? For example I have this program that produces (a lot of) output to stderr. I want to do something like ...
1
vote
2answers
460 views

installing vlc-tar.bz2 and gcc.tar

I need to install vlc player in fedora which is a tar.bz2 file. How can i install it ? Someone told me that gcc is needed to install this software. How do install gcc-4.6.2.tar ? Please list the ...
0
votes
2answers
2k 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
2answers
981 views

Installing tar.bz2 file of VLC player

I am a new user to Linux. I need to install VLC player in Fedora. I downloaded tar.bz2 package for VLC player. How do I install this player? I searched how to install tar.bz2 and i tried this: I ...
1
vote
2answers
720 views

Creating separate archives for a set of files

I have directory containing big list of files. I'd like to gzip each file of a certain mask to a separate archive. How do i do that automatically? For example here's sample directory contents: - ...
0
votes
1answer
62 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
867 views

How to ignore some folders when creating a TAR file in Linux?

I have a folder with 85 subfolders. I want to make a customized .tar file, meaning that I want to ignore some folders. How can I do that?
2
votes
2answers
166 views

Modern command line file compression utilities

I am frequently moving large files around from server to server. UNIXes comes with standard gzip and bzip2 compressors. However, what open options there exist beyond these, especially ones utilizing ...
4
votes
4answers
5k views

Extract file and folders with specified permissions

I pack a folder with lot of sub-folders and files in Windows with 7zip, upload to VPS and then run the command: tar -xvzf file.tar.gz then all unpacked files and folders have permissions of 777. ...
1
vote
2answers
5k views

Use tar and gz to create archive in Ubuntu Terminal

I want to archive 3 folders, given their names in Ubuntu command prompt. When I use tar -c abc tt zz -> it will do nothing.
1
vote
1answer
541 views

Can I stop a netcat tar pipe and continue later without overriding existing files?

I'm trying to copy a lot of files from my NAS to my server, about 2TB. I found that using a netcat tar pipe to copy the directories goes pretty fast, about 40mb/s. It seems to work faster than rsync ...
1
vote
2answers
186 views

tar -x -v -f on tape drive in Ubuntu (latest)

I am given the following command: tar -x -v -f /dev/rct0 -b 20 * Could someone please explain its meaning, because in this form it looks completely useless to me. As far as I know -x stands for ...
0
votes
1answer
174 views

How to merge file when unarchive the tarball?

I downloaded a tarball(abc.tar.gz) which has a root folder(abc) and multiple subfolders(a, b, c, etc). And I have a folder called Target in machine(macbook pro), with multiple subfolders(a, b, c, etc) ...
4
votes
4answers
14k views

How do I password protect a .tgz file with tar in Unix?

I'm using the Unix tar command as follows to tar up a directory and its files: tar cvzf fileToTar.tgz directoryToTar Is there a way to password protect the .tgz file? I've created ...
1
vote
1answer
63 views

make: my own simple repository

I have got an account on a server at my university. I want to share a program code with another student. I thought I should put it on my github account. Unfortunately, I cannot because the code is ...
1
vote
2answers
820 views

tar compare or diff command line

What is wrong with this? tar --diff --gunzip --file=/media/disk/filename.tgz This is GNU tar 1.23 on Ubuntu. The complaint is gzip:stdin:input/output error. The following just hangs and there is ...
2
votes
3answers
2k views

What does `tar -C` mean?

In the section "Installing Portage", the Gentoo installation docs say: # tar xvjf /mnt/gentoo/portage-latest.tar.bz2 -C /mnt/gentoo/usr What does this command do?
1
vote
1answer
8k 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 ...
7
votes
3answers
5k views

How do I convert tar.bz2 to tar.gz?

I'm new in Linux, is this conversion possible? Do I need to compress and decompress all content?
1
vote
1answer
90 views

Ignoring path while archiving with TAR

I have a file that contain list of files I want to archive with tar. Let's call it mylist.txt It contains: /path1/path2/file1.txt /path1/path2/file3.txt ... /path1/path2/file10.txt What I want to ...
2
votes
2answers
5k views

Untar a given linux tarball on MAC OS X

I have a Linux tarball that can't be unpacked. It gives me an unexpected error. I am told this is due to case insensitive on MAC OS X. How can I untar this file? tar -zxvf file.tar.gz ... x ...
1
vote
1answer
209 views

How to UnTar Wordpress contents to my document root without “wordpress” folder?

The contents of a Wordpress Tarball are all contained within a single directory called "wordpress". I would like to upload the archive to my server (CentOS) and UnTar all the files directly to the ...
27
votes
1answer
42k views

How do I unzip a tar gz archive to a specific destination?

I want to unpack a .tar.gz file to a specific directory. The archive file is in /root/Documents. I want to unzip it into /root/Desktop/folder. The folder structure in zipped file should be preserved ...
0
votes
2answers
1k views

tar: “Cannot stat” when given arguments as shell variables

I have some directories in a location, that location's absolute path is stored in PROJECT_HOME. Now, I am trying to do the following in a script: TARGET_LIST="bin lib scripts deployment" tar -czf ...
2
votes
1answer
3k views

How to tar/untar the output on the fly

What is the idiomatic way to do the following tar to stdout read this tar output from stdout and extract to some other folder. My solution is tar --to-stdout .. | tar -C somefolder -xvf - But ...
2
votes
1answer
1k 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 ...