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

learn more… | top users | synonyms

18
votes
4answers
14k views

tar – extract discarding directory structure

unzip has a nifty option -j, whereby the directory structure of the archive is discarded, and all files are extracted into the same directory. Is there a way of making tar work in the same way? ...
0
votes
2answers
57 views

How to install vimtrainer?

I'm trying to install vimtrainer. First I did: $ svn co https://vimtrainer.svn.sourceforge.net/svnroot/vimtrainer/trunk vimtrainer $ cd vimtrainer Then made sure ruby, rubygems, rake and vim with ...
4
votes
2answers
5k views

How to extract a single folder and its subfolders from a “tarball” (.tar.gz)

I need to extract a single folder and its subfolders from a tarball (.tar.gz) on a CentOS server. I haven't the slightest clue how to do it using an SSH terminal. I tried: gunzip -c ...
0
votes
2answers
75 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 ...
1
vote
5answers
977 views

tar command to extract archive with colon in the name

I try tar -zxvf plugin\:xyz.tgz and received the error: rsh: Could not resolve hostname plugin: Name or service not known tar: plugin\:thold-latest.tgz: Cannot open: Input/output error tar: Error is ...
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
796 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 ...
3
votes
1answer
375 views

merge all tar files on mac

I have a bunch of tar files such as a.tar b.tar. I use the following command to merge two tar files : tar --concatenate --file=a.tar b.tar However, --concatenate is not support on mac terminal ...
1
vote
1answer
628 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
1answer
73 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 ...
0
votes
1answer
1k 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 ...
4
votes
3answers
2k views

how do I use tar -C on Snow Leopard when creating an archive?

The man page states -C directory In c and r mode, this changes the directory before adding the following files. However, tar does not change to the directory I specify, but instead reports ...
0
votes
1answer
250 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 ...
2
votes
2answers
653 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
2answers
258 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 ...
3
votes
1answer
195 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
376 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 ...
2
votes
3answers
552 views

Control gzip compression rates while archiving files with tar?

I have a script which periodically backs up a directory using the command "tar -czvf [name] [directory]" but my problem is that the script has recently been putting a lot of stress on the server ...
1
vote
1answer
73 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, ...
4
votes
1answer
726 views

zip/tar/? files with depth parameter

I would like to zip files from a directory but only to a given depth. In the example below I would like to include files until a depth of 3: dir0/ dir1/ dir2 -> subdir1, subdir2 dir3 ...
2
votes
1answer
408 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 ...
3
votes
1answer
386 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 ...
0
votes
2answers
145 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). ...
0
votes
0answers
273 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
78 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
1k 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
681 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
143 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
772 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
263 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
147 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 ...
8
votes
2answers
5k 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 ...
6
votes
2answers
15k views

Howto pipe: cp | tar | gzip without creating intermediary files?

Can anyone tell me if it's possible to pipe | this without having to create a physical file anywhere between A and B.tar.gz? This is what I'm trying to do: File A Rename A to B Tar B.tar gzip -9 ...
2
votes
5answers
3k views

tar - exclude does not work

I've supposed to archive a directory with tar and exclude some files. I have a directory $HOME/java which includes some .java and .class files. What I want to do is exclude all .class files using the ...
0
votes
2answers
938 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 ...
3
votes
1answer
6k views

Why is “tar” trying to create an empty archive?

I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly ...
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
859 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
330 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
459 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?
0
votes
1answer
563 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 ...
3
votes
0answers
124 views

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

What is the etymology behind "-j" indicating bzip2 for tar?
12
votes
4answers
3k views

How do I create a tar file in alphabetical order?

I want to create a tar file where all of the directories and files are processed in alphabetical order. This is for the entire directory hierarchy that's being tarred up, so it would start by ...
2
votes
5answers
11k 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, ...
3
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 ...
0
votes
1answer
395 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 ...
2
votes
1answer
188 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 ...
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 ...
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:~$ ...
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. ...