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

learn more… | top users | synonyms

0
votes
1answer
75 views

Tar to tape : block number and blocking factor

The 64 kiB blocksize is to maximize throughput and avoid "shoe shining". mt -f /dev/nst0 setblk 64k tar -c -v -R -b128 -f /dev/nst0 test_dir returns: bloc 0 : test_dir/ bloc 1 : ...
2
votes
2answers
3k views

Create a tarball with a fake `root`

I'm working on something in a Makefile that will look something like this: tarball: mkdir -p tmp/tarball/etc/service mkdir -p tmp/tarball/usr/local mkdir -p ...
2
votes
3answers
731 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 ...
0
votes
0answers
11 views

How to delete files from a tarball by owner or version? Tarball contains files from multiple owners

I was deleting and appending files to a already existing tarball (meaning created by someone else other than me) but now I have duplicated directories from different owners and even from the same ...
-1
votes
1answer
43 views

how to install latest ffmpeg on Centos

I want to install the latest ffmpeg 2.8.5 on the Centos server. Followed this website http://www.mysql-apache-php.com/ffmpeg-install.htm and completed the installation. But the installed ffmpeg is an ...
6
votes
3answers
4k views

tar: --exclude=“.git”: Cannot stat: No such file or directory

This is driving me crazy. I want to tar a directory, but exclude some files. This is my command: tar -zcvf $NAME-$VERSION.tar.gz $NAME-$VERSION --exclude='.git' --exclude='.gitignore' While the ...
0
votes
0answers
14 views

FTP files from Linux server to windows client machine whilst maintaining linux file permissions

My local machine runs windows and my website is on a linux server. I want to back up my website to my local windows machine and maintain linux file and folder permissions. Ordinarily I would compress ...
0
votes
0answers
13 views

Strategies To Reduce Compressed File Lookup Time With Pixz?

I have a PIXZ-compressed (level -9) tarball containing around 4000 files (ordered, like pages in a book): compressed size is ~670M. Currently I am programmatically accessing these files using the ...
0
votes
1answer
22 views

tar xvfz and -xvfc both didn't worked in Cygwin on Windows

I tried tar with xvfz and -xvfc both didn't work in Cygwin on Windows. $ tar xvfz sshpass-1.0.5.tar.gz tar (child): sshpass-1.0.5.tar.gz: Cannot open: No such file or directory tar (child): Error is ...
3
votes
3answers
10k views

Extracting a *.tar.bz2 file?

I always used to use this command to extract files from a bzip2 tar ball: tar xjvf file.tar.bz2 But right now on Ubuntu 14.04, I get this error: tar: Conflicting compression options Try 'tar ...
1
vote
1answer
31 views

How to copy a .zip from within a .tar to a given location without extracting entire .tar using AWS S3 CLI

OSX 10.11 - python3.5 or AWS CLI (or other tool?) I have ~ 5,000 subdirectories within an Amazon S3 bucket, each subdirectory contains a single .tar. In each .tar it contains only one .zip, ~<1mb ...
0
votes
1answer
37 views

rsync to/from tar archive

Is it possible to rsync a real filesystem (remote) with a tar archive (local)? If so, how? Problem is I need to correctly backup user/group/permission settings and, while I have root access on remote ...
1
vote
2answers
267 views

tar reverse of '--to-command', or: compressing tar entries individually, or: tar with plenty of large files

I would like to create tar gzip archive, but do it the reverse manner of what is most commonly done -- have the files in the archive be compressed individually rather than compress the entire archive: ...
4
votes
2answers
110 views

Archive (.tar.gz) Corruption

I've got a .tar.gz archive that has definitely suffered some kind of corruption. The data inside the archive is obviously very precious to me and I'd really like to get my hands on as much as ...
53
votes
8answers
19k views

Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux

When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors: tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended ...
1
vote
2answers
57 views

Recover files from corrupt archive

I have a tar file of 40Gb but when I open it with the archive manager on Ubuntu I get only 512MB. The major part of my files are messing. Even when I do: tar -tf myfile.tar.gz I don't get the list ...
13
votes
6answers
10k views

SVN directly to tar

Is there a way to directly tar the latest version of an SVN folder without the SVN hidden files? I would like to create a tar archive without the SVN files. I know you can get the latest with the SVN ...
0
votes
2answers
41 views

Untarring into a temp directory, then deleting the directory

I'm a very new linux user, and I'm untarring a tarball into a directory, say that without smiling. What I want to do is create a temp directory with the mktemp -d command and use the tar command to ...
14
votes
2answers
7k views

Equivalent to tar's “--strip-components=1” in unzip?

I have a script that extracts a tar.gz-file to a speificed subdirectory mysubfolder: mkdir mysubfolder; tar --extract --file=sourcefile.tar.gz --strip-components=1 --directory=mysubfolder; Is there ...
1
vote
4answers
6k views

tar.gz won't extract on Mac OS X

Why is this not working? sh-3.2# tar -xzf postgresql-7.4.28.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors
21
votes
9answers
323k views

How to extract a tar file (.tgz) in windows?

How to extract a tar file (.tgz) in windows? Is this possible, or do I have to get into a linux environment and extract it?
0
votes
2answers
93 views

Can a tar.gz file contain malicious code? Is a Mac vulnerable to such a tar.gz?

Can a tar.gz file contain malicious code that is similar to ZIP file? On a Mac particularly? Edit: Oops, I meant to ask the process of opening/untar a tar file on the Mac. Not the contents of the ...
49
votes
1answer
86k 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 ...
4
votes
5answers
9k views

How to extract multipart rar with missing parts?

I have a multipart .rar archive containing a single .tar.gz file inside it (don't ask why, that is just how it was made). I am missing a few of the parts, but do have the first part. I would like to ...
0
votes
0answers
50 views

Store the filename of the extracted file in a text file

what is the best way to store the filename of an extracted file in a text file? I have a script that extract a single file from a tar file and then I need to store the name extracted file to a txt ...
8
votes
3answers
9k 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?
0
votes
0answers
36 views

Does tar happen to corrupt files? How can I recover a corrupted file?

So I was finishing a small c++ project last sunday, after a last check I made a tgz archive of it and sent it by email. And when I tried to open it again today, the file appeared to be completely ...
1
vote
2answers
228 views

AIX 5.3 Tar - Exctact to a different directory

I am trying to extract a untar a file to a different directory on a AIX 5.3 box tar -xvf -C /tmp/ ./MyFile.tar tar: -C: No such file or directory tar -C /tmp -xvf ./MyFile.tar Usage: tar ...
2
votes
1answer
301 views

How to count number of files in “.tar” files inside another, nested “.tar” file without extraction?

There are many solutions out there on counting of files inside a .tar file. But I have not found a solution to count number of files in .tar files inside another .tar file without extraction. For ...
1
vote
0answers
30 views

7-Zip: Empty tar file created

Using 7-Zip portable i created a tar file containing a folder which also contains numerous files and folders (200mb+). When i open the tar file it is empty, but the size of the tar file is exactly ...
1
vote
1answer
79 views

Error when trying to extract tar file

While I am trying to extract cmake i am getting error: tar - zxvf cmake-3.4.0.tar.gz tar: You must specify one of the `-Acdtrux' or `--test-label' options Try `tar --help' or `tar --usage' for more ...
0
votes
0answers
20 views

Automate the tar on file creation

I need to tar the log files automatically when its get created with date (eg., error.log-20151116). How should i automate this activity. I don't want to perform this action by log rotation.
14
votes
3answers
52k views

How to create tar archive split into, or spanning, multiple files?

According to this page, one can let tar create a tar archive "split" into 100 Mb files: tar -c -M --tape-length=102400 --file=disk1.tar largefile.tgz The problem is that this command will ...
0
votes
0answers
88 views

Error when extracting tar.gz file which contains symbolic link inside

I tried to compress the Repo folder (AOSP) into tar.gz.Source folder has many git folders and Symbolic links.It compressed without any error.But when i tried to decompress it using tar command it is ...
2
votes
1answer
35 views

Change the directory structure in tar.gz without extracting it

I have a tar.gz file that has the following structure when I extract. /dir1/dir2/dir3/many_text_files(.txt) I would like to change the structure as dir3/many_text_files(.txt) A simple solution is to ...
12
votes
3answers
829 views

Compressing many similar big files

I have hundreds of similar big files (30 megabyte each) which I want to compress. Every pair of files have 99% of same data (less then 1% difference), so I expect to have not more than 40-50 megabyte ...
0
votes
0answers
28 views

Recover overwritten .tar file on otherwise empty drive

I had a partition with basically nothing but a giant .tar file on it (that plus Ubuntu's "lost+found"). Then when I went to extract the tar file, I accidentally did tar -c instead of tar -x, replacing ...
12
votes
4answers
4k views

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem?

Is there a way to mount a file.tar.bz2 without extracting it onto the filesystem? I don't care if the mount is read only. Hopefully your answer will also apply to file.tar.gz. "mount" in this ...
0
votes
1answer
30 views

Archive directory structure without file contents

I would like to create an archive capturing the entire structure of a directory, including subdirectories and files. Preferably preserving file attributes such as modification time. The archive ...
0
votes
1answer
14 views

Ignore Zeros Not Working When Trying To Open Tar

I have a backup file from my system admins called backup.tar.gz. They mentioned that I need to use the --ignore-zeros/-i command when unzipping the file. However when I run the command as suggested ...
1
vote
2answers
18 views

Why install from a tarball when packaged option exists?

If given the option to install software on CentOS or RHEL from an RPM, why would one ever still chose to install from a tarball?
0
votes
1answer
990 views

how do I install mingw64 on kali linux 2.0?

I have downloaded several packages from these web sites: https://packages.debian.org/stable/wine-development http://sourceforge.net/projects/mingw/?source=typ_redirect Apparently, I have to have ...
0
votes
0answers
24 views

ssh download with tar and password prompt: tar: This does not look like a tar archive

So I am trying to download a directory recursively from another server with a command that looks like this: ssh user@server "cd some/directory && tar --dereference -c datadir" | pv | tar xv ...
0
votes
1answer
106 views

linux tar command -t option to show max-depth=1

A tar.gz file may contain many files and folders, and the folders may, in turn, have a lot of files and folders. I want to list the contents of the tar.gz file, but only one directory deep. How can ...
0
votes
1answer
147 views

How do I write a TAR file to SD card?

I need to write the OpenELEC Mediacenter OS image to an SD card for the Raspberry Pi. Usually most OS's provide an IMG file that I can just write with Win32 Disk Imager. However OpenELEC only ...
4
votes
1answer
488 views

Why is tar|tar so much faster than cp?

For recursively copying a directory, using tar to pack up a directory and then piping the output to another tar to unpack seems to be much faster than using cp -r (or cp -a). Why is this? And why ...
12
votes
7answers
27k 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
11k views

How to install u-torrent from a tar.gz on Kali Linux?

I am trying to install u-torrent, from utserver.tar.gz file. I have used the commands: root@kali:~# cd ~/Desktop root@kali:~/Desktop# ls [kickass.so]easy.recovery.essentials.pro.win.8.7.xp.torrent ...
0
votes
0answers
13 views

Synthesizing progress function with tar script

I use this tar script to backup my files: #!/bin/bash cd /mnt/backupdisk tar -cvpzf "$(date +%m%d%Y).tar.gz" --exclude="~/Documents/Excluded" --exclude-caches-all /home I want to add a progress ...
1
vote
3answers
19k views

tar Cannot open: No such file or directory

Fresh install of CentOS 5.4 Downloaded the following: http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz MD5 sum is correct (cdcc09d71d85d81914a90413eaf21d3f). The file is located ...