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

learn more… | top users | synonyms

0
votes
1answer
157 views

Looking for a gtk equivalent of ark

Does there exist a GTK equivalent (or improvement) of the Linux archiving tool known as Ark? If so, where might it be found; and if not, how well-received might be a new project which acts as a ...
3
votes
2answers
85 views

Use all CPUs when creating archives on Linux

Today I wanted to create a backup from a folder on a server with 16 CPUs. I started looking for an option that can utilize my hardware to archive a folder better than how tar does it. Something with ...
10
votes
2answers
7k views

Forcing “tar” to create an empty archive

I am making an RPM in which everything is contained in the .spec file (don't ask :-). rpmbuild requires a "Source" file, so I was trying to create an empty tar file. However, if I don't give any ...
3
votes
1answer
2k views

Why is my tar.gz file corrupt after using bash ftp to move file to a remote server?

I back the tar.gz file up on the local server, then ftp it to a remote server. If I pull it to my desktop via ftp client from the local server, the file works fine. If I pull it to my desktop via ftp ...
0
votes
1answer
1k views

How do I resolve the error “tar: A lone zero block at 60140”?

I am getting an error from a tar.gz file that was created with winace when opening it with tar vxzf package.tar.gz in Linux: tar: A lone zero block at 60140
0
votes
2answers
364 views

How do I compress a directory?

Hey guys I was wondering how would I gzip 7z tar or just regular zip a directory like this /var/Backups/Tones regular gzip won't do it because Tones is a directory and this site ss64.com/bash doesn't ...
1
vote
2answers
560 views

Bash: Concatenating TAR balls

Is it valid to do this: { tar -c dir1 tar -c dir2 } | cat > file.tar Is the resulting file.tar a valid tar ball? If not, how can I concatenate tar balls on the fly?
3
votes
0answers
128 views

What is the etymology behind “-j” indicating bzip2 for tar? [closed]

What is the etymology behind "-j" indicating bzip2 for tar?
0
votes
1answer
649 views

Why my multiparted .tar unpacs just partly? (missing files)

I have 25 .tar files like: filename.tar.001 - filename.tar.025 When I want to unpack them with cat myarchive.tar.* | tar xvf - it does, but missing files: whole .tar is 1,2 GB, but unpacked files ...
4
votes
1answer
3k views

What's the meaning of the different “removing leading slash” warnings?

I'm using gnu tar with a few instances of --exclude specified. I get both the Removing leading / from member names and Removing leading / from hard link targets warnings. What's the difference ...
3
votes
1answer
419 views

Why /home folder is missing from my backup archive created by tar?

So I'm doing full backup of my VPS using the following command (as root, of course): tar czvf 20120604.tar.gz / Everything seems to be fine, all files seem to appear in the list. The size of ...
2
votes
1answer
212 views

Can tar be forced to exit on the first error?

By default, for many kinds of errors tar prints a message to stderr and then continues on its way -- the errors it calls "recoverable" errors, typically errors that relate to a single file or archive ...
3
votes
1answer
3k views

Tar backup with progress bar

I would like to add a progress bar to my tar backup command. I found out that the bar shell script should be able to do this, but I am unable to figure out the correct command. sudo tar pzcf - ...
0
votes
2answers
172 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
4k 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
275 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
97 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
251 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
519 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.
3
votes
6answers
13k 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
415 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
2answers
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
439 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
610 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
104 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
98 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
421 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 ...
14
votes
5answers
23k 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
219 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
793 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
5k 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
548 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
197 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
243 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
481 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
1k 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
773 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
64 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
952 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
6k 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
6k 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
573 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
195 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
179 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) ...