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

learn more… | top users | synonyms

1
vote
1answer
28 views

tar complains “No such file or directory”

I'm using bash on Windows (distributed along with msysgit) to zip log files - one archive per date. Problem is, following script does not work and I have no idea why. Cut is here to get part of the ...
0
votes
1answer
55 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
3answers
40 views

Find files then tar with wildcard

I have a series of files called: 2014111test.log 2014111test.log.stuff 2014111test.log.flibble 2014115test.log 2014115test.log.stuff 2014115test.log.flibble I want to find all the log files over a ...
0
votes
1answer
16 views

How to extract single file from large tar/tar.gz file

What I want to do is to extract a single file from a huge tar file, instead of extracting the whole tar. I am using RHEL 6.4 I Googled it and tried the following: tar --extract --file=some.tar ...
1
vote
2answers
38 views

Tar archive won't unpack – “Path contains '..'”

The name of the file 2014-12-12 04-00-01.tar. I executed the command: tar xvf 2014-12-12\ 04-00-01.tar The output is many lines of the form: x ../server/: Path contains '..' And then a few of ...
0
votes
2answers
19 views

tar xvf with * failed on some platform like HP-UX or SuSE

tar xvf archive.tar *.txt failed on HP-UX and SuSE. How can I extract only files matching *.txt for a tar archive ? I could use --wildcards on SuSE but this not work on HP-UX I'm on HP-UX 11iv2 ...
0
votes
0answers
15 views

GNU tar treatment of symbolic link timestamp

I need to use (GNU) tar to move a directory tree from one Linux machine to another, and I want symbolic links to remain symbolic links. I did it with just the usual command line options (cf and xf). ...
4
votes
1answer
160 views

Why does the ls command require a dash before its parameters but for tar command, the dash is optional?

I am new to Ubuntu and I am trying hard to understand the command line. When I want to see the contents of a tar file I use: tar tf tarfile.tar But when I want to see a listing of all file if I ...
0
votes
3answers
44 views

Unrecognized archive format when trying to extract content from a TAR archive

I have an uncompressed TAR file created on Linux. If I use less to view the file I can see all the data; mostly code files. However if I try to decompress it I get the following error: tar: ...
1
vote
1answer
34 views

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

in my Linux machine under /var/Recording directory. I have hundreds directories and each directory there are also directories and files include hard links and soft link . I want to compress all ...
1
vote
1answer
66 views

Extracting a tar.gz file returns, “This does not look like a tar archive.”

I have a tar.gz file and I want to extract it using terminal. I used following commands: tar tvzf ldtp_3.5.0.orig.tar.gz and tar -xvzf ldtp_3.5.0.orig.tar.gz. However, I get the same result for both ...
2
votes
1answer
38 views

recreating just the uid/gid unix permissions from tar

I was restoring a root partition based on a tar backup from system-rescue-cd. It went ok except the uid/gid mappings on the system-rescue-cd disk did not match the ones on this debian system that I ...
0
votes
2answers
15 views

tar command does not list content of tar package with -t option

I am trying to list the content of the tar archive with the following command tar -t "filename".tar But the shell works on this one forever without any output message. I did a research on this ...
0
votes
1answer
20 views

How to tar a directory preserving not only permissions, but ownership too

I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too. And, in this directory there are many files that belong to many users.
0
votes
1answer
34 views

Search through tar files for a pattern and print the full path of what's found

I have directory tree with many tar files. Each tar file contains many other files. I want to search through all the tar files for a given pattern, and print the full path of any files within a tar ...
4
votes
1answer
46 views

Tar using progress bar and handling multi-volumes

I'm trying to create a tar of a large LVM volume onto multiple external drives. That part is solved. Now, because it is a LONG process, I'd like a progress bar. From the excellent articles here, ...
0
votes
1answer
28 views

Tar not preserving permissions on extract

I'm backing up a users folder as root using tar tar -czf /mnt/disk/cloud.tar.gz -C /home/cloud/ . In /mnt/disk I do a test tar ztvf cloud.tar.gz and it shows -rw-r--r-- cloud/cloud 14 ...
-2
votes
1answer
41 views

Can't download hadoop

Am I taking crazy pills or is it impossible to download hadoop right now? I am looking at http://www.apache.org/dyn/closer.cgi/hadoop/common/ to find mirrors for it and absolutely none of them work ...
2
votes
0answers
27 views

Common tips for compressing/extracting large folders?

Are there any common tehniques or issues I need to be aware that can speed up or make more robust the process of compressing/uncompresing large (>60gig) folders with many (>3000 files) elements ...
1
vote
1answer
40 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: ...
0
votes
1answer
34 views

Execute “tar -cf” command from “send to” batch file to .tar.gz a file quickly

I installed the GNU tar for windows to speed up tar-ing files so I don't have to mess around opening 7zip twice to tar then gzip a file. To speed up the process even more, I tried to write a send-to ...
0
votes
1answer
28 views

archiving files without timestamp

I need to archive some files deterministically, so that I get the same archive file if the content of the files is the same. I need this for testing for equality of the archive files later. however, ...
0
votes
1answer
10 views

Script for Folder transfer from DEV server to TEST server

can you pls provide me the script which should like below Transfer the tar zip directory from dev server to test server Also it shoud check for chekcsum , junk charcter in the directories once ...
1
vote
1answer
23 views

Deleting unpacked tar.gz files after unpacking incorrectly

I recently unpacked a set of backup files in RHEL3 - 2.4kernel with tar via: tar -xvf backupfile It started to error out a bunch and I aborted thinking that maybe it was a gzip instead. Unpacking ...
1
vote
2answers
39 views

how to use tar '--remove-files' option inside find -exec?

I've got a number of very large log files which I want to compress individually so I can't use xargs or pipe stdout to get a huge compressed file. I'm trying to do this: find . -mtime +1 -iname ...
0
votes
0answers
30 views

How do I start an application after running the installation script?

I've been looking around the internet and I can't find a direct answer to this. I've install Komodo IDE by downloading the .tar.gz file (from http://komodoide.com/download/) and using the tar command ...
0
votes
1answer
25 views

Target directory structure for tar different than original directory structure

Is there any way to set a different target directory structure than the orignial directory structure the tar archive was created from without creating it by hand? For example, I have many files in a ...
0
votes
1answer
43 views

Does Killing A Bash Process Affect Children Processes [duplicate]

The Scenario I'm automating backups via a bash script. The script is executed via cron. The script archives directories recursively using tar, and then rsync's them to the remote host. Here is a ...
0
votes
1answer
33 views

tar: backup before overwriting

The cp command has a feature not well-known to everybody that it can backup before overwriting the target file. Does tar has such feature as well during restoring? I saw an option of --backup, but ...
1
vote
1answer
20 views

What happens when directory contents change during tar?

I have a large directory that I'm taring. It takes a long time and I was wondering what happens when the directory contents change whilst tar is still doing its thing.
0
votes
2answers
38 views

Determine type of archive file in Linux

I have an archive file with .tar.gz as extension grabbed from http://www.oracle.com (it is the Java Runtime Environment). I tried to decompress it using tar -xvf and tar -zxvf and it says gzip: stdin: ...
0
votes
3answers
48 views

decompressing a 50 GB archive to a 100 GB drive

So I moved hosts today and I put all content from the old host into a single archive. The archive took 20 minutes to compress and one hour to transfer the tar file to the new host (Linux CentOS ...
0
votes
0answers
12 views

tar: re-extract files with a different size on disk

I have some gigantic tarballs that I was extracting, then cancelled mid-extraction, so the files from the .tar file all exist on disk but are not all the right size. Is there any way to: (1) Have ...
1
vote
1answer
86 views

Change root folder name in tar.gz file

I have a tar.gz file, specifically: http://download.oracle.com/otn-pub/java/jdk/8u20-b26/jdk-8u20-linux-x64.tar.gz. I am going to download this, change it and stick it in my own repository. I wish to ...
0
votes
0answers
17 views

Apache compilation from source followed by php compilation as DSO and suphp. Pull up a phpinfo file under both configurations

I've followed all the steps specified here. I've done the following steps as per the link: Compile apache from source (using httpd-2.2.24.tar.gz, apr-1.4.6.tar.gz, apr-util-1.5.2.tar.gz) Compile ...
0
votes
1answer
35 views

Why is tarball being recognised with .tar extension in GET Request

So I have a question about header requests on filetype.. Not sure of the best way to phrase the question, so I will explain what I have done. Created a tarball on a server, tar-cvf alle.tar.gz ...
0
votes
1answer
16 views

Create a tarball of absolute file path

I need to create a tgz of files with their absolute file names. The problem is: the receiver of the tgz expects (which is a embedded product based on linux) a root hierarchy like this (displayable ...
0
votes
0answers
209 views

Installing Eclipse for linux (64 bit)

So I am trying to download the latest version of eclipse from the link provided by eclipse.org I am using Ubuntu 14.04 64 bit. There is a package available in the software repositories, but it is ...
0
votes
0answers
26 views

Archive directory system with compression for subdirectories - dar?

I have a large (~100GB uncompressed) collection of files that I want to store in < 2GB chunks for backup on a Windows Server based storage system. I'm running Ubuntu on my workstation. The data ...
0
votes
1answer
115 views

Tar withour directory structure and exclude folders

I am trying to create a tar file to exclude certain folders and then I want to have a tar file without the parent directory structure. I am able to exclude folders, but when I extract I see path from ...
1
vote
2answers
802 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 ...
0
votes
2answers
948 views

Cannot decompress .tar.xz file, getting “xz: Cannot exec: No such file or directory” from tar

Per How do I uncompress a tarball that uses .xz?, I tried tar xf php-5.6.0RC4.tar.xz and tar -xJf php-5.6.0RC4.tar.xz and in both cases I get the following: tar (child): xz: Cannot exec: No such file ...
1
vote
1answer
95 views

Running find…exec tar czvf only archives one file…need all files

When attempting to run find . -iname "*.gz" -mtime +7 -exec tar czvf all_gizip_$(date +%Y-%m-%d).tar.gz {} \; I get the list of files ./corosync.log-20140620.gz ./corosync.log-20140618.gz ...
1
vote
0answers
32 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 ...
0
votes
1answer
104 views

tar -czvf with no output file

Say you run tar -czvf some_folder_here and don't actually specify an output file, like tar -czvf some_output_file.tar some_folder_here. Where does the file go? I just ran this by accident, and the ...
0
votes
3answers
114 views

Create archive with hidden files and folders creates a . root entry

I am trying to archive a project folder with hidden files and folders, and I get one with a root entry of .. It's annoying. Typically : tar -czf $ARCHIVE_NAME -C $DIR . will create an archive like ...
-1
votes
3answers
279 views

Breach on Ubuntu 14.04

I am using ubuntu 14.04 and I want to install new browser http://breach.cc/ I've downloaded zipped file. but I do not know what I do after this? Can anyone help me?
3
votes
0answers
43 views

Compressed file with a header containing all files within it, at the beginning of the file

I have noticed that most files resulting from a compression / archive process do not have a list of the files contained at the beginning of the resulting file, but rather at the end of it. For ...
0
votes
0answers
405 views

Java plugin doesn't work in Chrome in Ubuntu — how can I fix this?

I have Ubuntu 14.04 LTS (64 Bit) and Chrome Version 35.0.1916.153. I downloaded jre-7u60-linux-x64.tar.gz and extracted it in /usr/lib/java/ Then I created a directory named 'plugins' in ...
0
votes
1answer
128 views

extracting all files in tar to a remote server

Here, it extracts the specified file in a remote machine. tar -xzOf file.tar.gz file_you_want_to_extract | ssh user@host 'cat > /path/to/destination_file' My requirement is that I want to extract ...