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

learn more… | top users | synonyms

1
vote
2answers
19 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
0answers
45 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
310 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
619 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 ...
0
votes
0answers
16 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 ...
2
votes
1answer
41 views

How to Tar/GZip just the files folders in the data directory?

I have a bunch of folders and files in /usr/local/bin/data that I want to tar.gz. I have a bash script that sets the source folder to backup src='/usr/local/bin/data/* When I open up the .tar.gz ...
-1
votes
1answer
55 views

packing up an entire directory structure ignoring a certain filetype [duplicate]

I want to create a tarball of a directory structure. I know I can pack the entire directory by executing tar czvf testdir or all the files in it with tar czvf testdir/*. But what I want to do is ...
0
votes
1answer
65 views

How to extract from PAX archive to current directory.?

I have a PAX archive what I want to extract into the current directory, using the directory structure in the archive. I have tried the following command: JBSP03:/u/jsdbsp/jbsp03:cd /usr/lpp/sel/...
7
votes
3answers
1k views

Why are not all files compressed and how to improve the solution

I have a folder with about 20K files. The files are named according to the pattern xy_{\d1,5}_{\d4}\.abc, e.g xy_12345_1234.abc. I wanted to compress the first 10K of them using this command: ls | ...
0
votes
2answers
323 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 : test_dir/file_1....
2
votes
1answer
109 views

/dev/fd0 equivalent on windows. (Writing directly to tar floppy)

I am currently using a system I cannot change that writes tar files to a floppy disk. I need to read/write the same type of disk on a windows machine. The command used to create the disk in Linux is:...
-1
votes
1answer
120 views

Uploading a file through linux terminal

I looked at a previous question How to upload local file to server through Linux terminal and I am still having trouble performing the upload. I have downloaded a file to my computer and I am looking ...
1
vote
0answers
209 views

How to untar file with UTF-8 special characters in Windows

I want extract a TAR file with special characters UTF-8 and when open it with WinRAR and PeaZip show filename like mark question and when extract it with WinRAR and 7-Zip file name change to ...
1
vote
0answers
53 views

Unzipping files downloaded from the Arxiv server

I want to download the source Tex files (not the pdf) of this document: http://arxiv.org/abs/1306.0322 After downloading here, I get a weird file with the ".0322v3" (the second part of the doc code) ...
0
votes
1answer
2k 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
1answer
361 views

Backup user home directories and system configuration file

May I know that when I run this command: sudo tar -cvpzf user1_backup-$(date +%Y--%m-%d).tar.gz /home/students/user1 to backup the user1 account in my linux OS, it does backup my home directories ...
1
vote
1answer
105 views

Error messages when extracting a .tar.bz2 in Ubuntu

While extracting a .tar.bz2 file using the command tar xjf git.tar.bz2 I received error messages that shows Cannot hard link to and Cannot create symlink to What will be the reason ...
0
votes
2answers
162 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 ...
0
votes
1answer
46 views

GPG with tar.gz at the same time without the full path being packed

I would like to compress and encrypt a folder: tar -cz "/path/to/the/folder/" | gpg --encrypt --passphrase "password" --recipient "mail@mail.mail" > "/destination/package.tar.gz.gpg" When I ...
0
votes
0answers
23 views

tar failing to create symlink on samba mounted share

We have a perl build script which, as part of it's operation, untar's a few tarballs. One of those, openssl, contains some symlinks (libssl.so points to libssl.so.1.0.0). I am trying to run this on ...
2
votes
0answers
86 views

view zip file content in tree command style

I am seeing the zip file content using unzip -l files.zip | less but it outputs in ls style , is it possible to to display output in tree command style
0
votes
0answers
34 views

efficiently append to large tar archive

I thought that tar was meant to write out on linear media, eg. tape in the beginning. So appending further files to an existing archive should only touch it's end I guessed. However, appending a ...
0
votes
0answers
27 views

Piping back resulting stream from split remote commands

I'm trying to perform the following: (1) generating data on my local workstation (2) piping this data (huge amount!) once to my remote speedy server (3) performing two separate operations on this data,...
0
votes
0answers
38 views

Why am I encountering 'Error decoding stream footer' when decompressing using `pixz`?

I compressed a file using tar -pcv input_dir | pixz 8 -p8 > output.tar.xz. When I try to decompress or list the files using pixz -d and pixz -l i encounter the error Error decoding stream footer. ...
0
votes
1answer
25 views

decompress multiples pdf files without using tmp files?

I have more than 100.000 pdf files I want to decompress it, then recompress theme all in one archive file to save space. all i found is: ls | xargs -P 4 -n 1 -I {} qpdf --stream-data=uncompress {} /...
1
vote
2answers
123 views

To open lrzip-compressed in Debian 8.1

I downloaded the SageMath jessie package here but I cannot open it. I get the warning in ArchiveManager Could not open this file type There is no command installed for Tar archive (lrzip-compressed) ...
0
votes
1answer
41 views

I want to take tar backup of the directory whose name will be variable

I am trying to write a shell script in which I want to take tar backup of the folders which are formed on daily basis. For example my parent directory name is "log" and under this directory a ...
0
votes
1answer
150 views

Tar progress per file with pv for multiple files/folders at a time?

I've been using this one line command that I found on another post here and it works great for one folder at a time. This is the command: tar -cf - /opt/folder1 | pv -s $(du -sb /opt/folder1 | awk '{...
1
vote
3answers
973 views

Concatenate multiple tar files in one command

I receive anywhere from 4 to 100 very large tar (~20GB) archive files everyday. I have been concatenating them in the past by looping through each of the archives I see on the file system and doing ...
2
votes
2answers
1k views

Chromium: prevent unpacking tar.gz

The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using wget with the same URL, it shows: $ wget http://mydomain/dir/file.tar.gz ... HTTP ...
2
votes
1answer
147 views

tar performance writing to disk

When writing to disk (SATA) I've noticed tar seems to have a large performance hit. I'm trying to copy a, relatively, large .dmg file (556MB) from my client (OSX) across my local network as part of a ...
0
votes
0answers
186 views

Composer Install .tar.gz

Trying to install node.js via composer (for automation). "repositories": [ "type": "package", "package": { "name": "nodejs/nodejs", "version": "0.12.6", "dist": { ...
0
votes
1answer
90 views

How to tar a file whose name starts with -

I want to tar a file whose name id : -i_jkhv34 but I am getting an error : tar: invalid option -- '_' is there any way to do so?
3
votes
3answers
1k views

How to make a local tar file of a remote directory

This link describes how to copy tarred files to minimise the amount of date sent over the network. I am trying to do something slightly different. I have a number of remote files on different ...
2
votes
1answer
710 views

Is there any limit on number of file name we can pass in tar

I am creating a tar and untar it at other location using: $ tar -C sourcedir -cf - . | tar -C targetdir -xpf - but it fails like thisError I am getting is :Argument list too long - tar, when I am ...
0
votes
4answers
231 views

How to open tar gz file created using tar piped to gzip

I wanted to generate a tar gz file with the highest compression level, and I followed the solution from http://superuser.com/a/546509/461740: tar cv /path/to/directory | gzip -9 > file.tar.gz ...
1
vote
1answer
62 views

Halting tar after locating entry or EOF in an actual tape archive

I've just been handed a pile of LTO-5s and a tape library, and the exciting task of extracting a subset of files. Order of magnitude is 60 tapes from said pile, around 10,000 files of 70,000 per tape ...
1
vote
1answer
103 views

Linux Mint 17.1 tar backup error

I've used the below script successfully with ubuntu 12.04. Now I did a fresh install to Linux mint 17.1 and I can't get the tar backup script to work no more. it gives an error: Here's the script, ...
0
votes
1answer
209 views

How to mount a encrypted tar file in Linux?

Let us imagine I have encrypted my tar file with gpg as we can see here but I want to mount that with archivemount (e.g.: answer) without holding the unencrypted file on disk. Is it possible? If not, ...
1
vote
1answer
116 views

Creating a tar archive from a file list AND removing full path

I'm trying to combine two options for creating a tar archive but they don't work well together. I don't know what's the problem. I use : tar -C /var/www/website html -cvzf html.tgz -T /tmp/htmllist....
0
votes
1answer
70 views

How to .tar multiple text files

I have multiple text files in a folder. I must tar them in a single tar-file. I am passing (iterate) the file names through a variable. When I do that only the first file gets tarred. Here is the ...
1
vote
2answers
92 views

Backing up linux server on ntfs harddrive

I'm looking for a way to backup my debian server. For the data partition I have a solution using rsync, the backup goes to an encrypted ntfs-drive. NTFS because I often take the drive with me to watch ...
1
vote
2answers
49 views

Is Tar a suitable archiving solution for numerous backups of data from the same folder?

I’ve recently decided to archive some data using Tar. The data consists of numerous backups of the same folder; meaning that it contains a lot of duplicates. I read that because Tar lacks an index, it ...
2
votes
1answer
96 views

continue extracting a tarball after job is killed

I am extracting a big tarball, but the job was killed in the midway. Is it possible to continue extraction without rolling back from the beginning? The command I was using was tar xvf foo.tar.gz
0
votes
2answers
233 views

tar: How to remove files after packing but keep directory

I want tar to pack a complete directory tar cvjf dir.tbz dir But make it delete all files tar cvjf dir.tbz dir --remove-files However this removes ./dir too. So I tried to cd into directory ...
1
vote
3answers
51 views

Is it better to compress all data or compressed directories?

I'm archiving some projects, let's say each of them has own directory: projects |- project-1 |- project-2 |- project-3 I started compressing them as following: ==== SITUATION 1 ==== projects |...
1
vote
2answers
467 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 {c|r|t|u|...
6
votes
2answers
4k views

What is the correct MIME type for a tar.gz file?

What is the correct MIME type for a tar.gz file? I've searched around and found several values being used, including: application/x-gzip application/x-gtar application/x-tgz But I could find no ...
1
vote
1answer
264 views

How to untar an archive without the root folder, but keeping the full hierarchy inside it?

If I’ve got a .tar archive, and when I extract it, it gives me a single folder foo containing some more stuff, like this: foo/ something.txt another.txt bar/ something-else.txt Is there a ...
2
votes
1answer
629 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 ...