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

learn more… | top users | synonyms

-1
votes
2answers
375 views

tar -xvf *.tar.gz gives me a weird name on extraction

I have a file "elasticsearch-servicewrapper.tar.gz". When I try to run: tar -xvf elasticsearch-servicewrapper.tar.gz I expect the extracted folder to be called ...
1
vote
1answer
920 views

update file in tar

for Linux tar command: tar uf test.tar test.txt but for *BSD bsdtar command option u = r = append,that is can't update file ,only can append file and also ,I try compiled libarchive , proved ...
0
votes
2answers
1k views

Estimate compressed file size in tar.gz

I've got a set of .tar.gz files, which are duplicity backup files (either full backups or incremental ones). I'd like to compute which directories take the most space on backups. This will most ...
0
votes
1answer
2k views

linux zip and tar all files with a specific extenstion recursively maintaining directory structure

Similar to this question and this question I'd like to make a single compressed tar file (files.tar.gz) that contains all the php files in my webroot and all it's subdirectories, maintaining folder ...
0
votes
1answer
284 views

.tar file currupted when copied to Windows using FTP

I have a Windows 7 host and an Ubuntu virtual machine; the VM has a bridged adapter. I created a .tar file in Ubuntu using this command: tar -cf name.tar /path/to/dir/ I have FileZilla FTP server ...
1
vote
3answers
2k views

Is there a command to determine the compression ratio of a tar.bz2 file?

I have a file.tar.bz2 that's about 50GB and would like to extract it however I don't know how much space I will need. Is there a command to print the compression ratio of the tar.bz2 file?
3
votes
2answers
1k views

How can I automatically remove files after they've been archived?

How do i archive and remove excess files example. cd ~/Desktop && tar -cvf sitepack.tar ./ this will give me ls Riva_Starr_Feat._Noze_I_Was_Drunk_Official_Video_HD_.mp3 ...
0
votes
1answer
81 views

cygwin tar omits directory when creating archive

I have the following directory structure books/java books/java.ebooks books/java.gwt books/java.swing books/javaee I use this command to create an archive of all the directories starting with the ...
3
votes
1answer
223 views

Cygwin creating multiple links to files inside tar?

I'm trying to create a .tar file in Cygwin: find . > tmpfilelist tar -cf tmp.tar -T tmpfilelist but when I open tmp.tar in Windows with 7-Zip there are four instances of each file: Name ...
1
vote
2answers
468 views

Archive software for big files and fast index

I'm currently using tar for archiving some files. Problem is: archives are pretty big, contains many data and tar is very slow when listing and extracting. I often need to extract single files or ...
3
votes
1answer
212 views

tar file extraction, why file size reduced

We commonly know that compression is the reduction in size of data in order to save space or transmission time, I should expect bigger size when I extract compressed file. I have downloaded a file in ...
1
vote
1answer
80 views

GNU tar symlink preservation on case by case basis

I'm trying to create a tarball, and there is one specific file that I need to preserve as a symlink in the tarball. However, there are a lot of other symlinks that I can't preserve as symlinks, ...
3
votes
1answer
534 views

List full timestamps of files in a tarball

I have a large tar archive and want to see the exact (nanosecond) timestamps that are stored for each file in the archive. In case it's relevant, the tarball is in POSIX-2001 format (tar ...
0
votes
0answers
308 views

Bad CPU type in executable while typing tar command

recently i have upgraded to mountain lion and there is problem with my tar command, i am not able to unpack my tar files from terminal. when i type tar command in terminal i am geting bash: ...
1
vote
0answers
84 views

tar --remove-files behavior: delete after every file or after completion?

Pretty much in the title. I have a box with very little disk space left and lots of data. I want to add all of the files into a tar, deleting them as I go because there is clearly not enough space to ...
1
vote
4answers
2k views

Does tar preserve links? [duplicate]

Possible Duplicate: How can I tar ball a directory hierarchy with soft links in linux I am using tar to copy files and directories from a Solaris machine to a Linux machine. Does Tar ...
0
votes
1answer
944 views

extract files in sub-directories from a tar file to one directory [duplicate]

Possible Duplicate: tar – extract discarding directory structure I have a tar file that include sub-directories each has several files. I need to extract all those files into one directory. ...
1
vote
2answers
156 views

How do I undo an incorrect tar command on OSX?

I spent the past weekend creating a VirtualBox instance with the perfect setup. Once I was finished I tried to tar+gzipi the virtualbox for sharing with others, and I accidentally ran the following: ...
0
votes
1answer
994 views

Failing to extracting tgz file in Debian

I am working with omnetpp and I want to run it in a Debian system (in my university) but when I type tar xvfz omnetpp-4.2.2-src.tgz I keep getting this error: gzip: stdin: invalid compressed ...
1
vote
3answers
330 views

Unix tar compressed folder not opening on windows

I used command tar -cvzf upload.tar upload to compress my upload folder, but when i'll extract it on widows using 7-Zip it shows up as just a single file, not folder. And the uplad folder isn't ...
0
votes
1answer
162 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 ...
11
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
385 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
620 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
132 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
690 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
441 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
220 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
178 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
297 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
100 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
252 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
555 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.
4
votes
6answers
15k 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
437 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
472 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
687 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
108 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 ...