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

learn more… | top users | synonyms

2
votes
1answer
140 views

How to make tar only match patterns to extract on a certain directory?

The extracted tgz contains a structure approximately like: Source header.h bozo.h dir2 anotherheader.h The following: tar xzf libm.tar.gz --strip-components=2 Libm-2026/Source/*.h/ extracts ...
0
votes
3answers
37 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 ...
2
votes
2answers
257 views

Put tar'd files in a subdirectory

I have a directory setup like the following: folder_x file.y file.z I would like to create a tar file so that when it's extracted the structure will look something like this: dir_q/folder_x ...
-1
votes
2answers
88 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
27 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
82 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
9 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 ...
8
votes
4answers
8k views

How to obtain maximum compression with .tar.gz?

The way i understand the use of tar + gzip is that tar is normally used to consolidate a grouping of files into a single file, then gzip is used to compress that file. I recently learned that tar can ...
3
votes
1answer
1k views

tar/bz2 compress a file removing uncompressed original

Is there any way to turn a directory called dir1 into dir1.tar.bz2 without keeping the original? I need to save space and want to compress some large files but don't have enough room to keep a ...
0
votes
0answers
9 views

Compressing with BarCat?

I'm having an issue using Barcat to show a dialog while compressing? Wondering what the exact syntax is? here's a link to Barcat things I've tried are bar -n apache24.tar.xz |tar -Jcf - bar -n ...
0
votes
0answers
11 views

Batch file to add specific string in a XML file and zip it to TAR afterwards

To start, I'm not a real hardcore programmer so bear with me. I searched the web for help and I got already some steps further to completion. What I'm missing, how to add a specific line after ...
3
votes
2answers
81 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 ...
1
vote
1answer
39 views

How to restore the file access time after extracting from archive

Is it possible under Linux to restore the file access time to that of the original file after extracting files from an archive created with tar on NTFS file system? tar does not restore the access ...
1
vote
2answers
2k views

MinGW tar compression problem

I am unable to get the Mingw tar to work with compress files. It does not filter through the proper compression utility. However, tar will work if I manually uncompress the file first. I have tried in ...
0
votes
0answers
43 views

Extract Java7u60 Server on Windows

I've downloaded the file server-jre-7u60-windows-x64.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html and am trying to extract it with 7Zip. I ...
2
votes
2answers
5k views

Untar a given linux tarball on MAC OS X

I have a Linux tarball that can't be unpacked. It gives me an unexpected error. I am told this is due to case insensitive on MAC OS X. How can I untar this file? tar -zxvf file.tar.gz ... x ...
-1
votes
1answer
22 views

How do I back up images with limited disk space?

I'm in a scenario where I have one 500GB hard drive and about 400GB of images I want to tar. I obviously won't have enough disk space, but I don't mind getting rid of the images as they are added to ...
4
votes
1answer
4k views

Put date into backup .tar.gz filename

I'd like to run a simple tar command to backup my website directory. It will run through cron, but I want to be able to put the time at which the backup was made as the filename. I don't really mind ...
0
votes
2answers
29 views

I cannot open folders in .tar file

I've downloaded factory image for my Nexus4 mobile, the Image folder is compressed in .tar file but it tells me that its unknown file Type: File ,, how can i open it? here take some photo of my ...
1
vote
2answers
34 views

Untar after uploading to linux from windows

I have created tar.gz from my linux server, and I downloaded the same to my linux system and I successfully doen untar with tar -xvf package.tar.gz. And now my issue I downloaded same ...
0
votes
3answers
42 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
0
votes
1answer
23 views

How do I upgrade my version of tar on Red Hat 5?

I'm running RHEL 5 and the default version of tar is horribly old. yum update tar shows that I have the latest version according to their repo. How do I go about upgrading to tar 1.27, please?
2
votes
2answers
14k views

Install VLC 2.0.7 in CentOS 6.4?

I am keep failing in the installation process I have tried. I have started process as follows. yum install gcc dbus-glib-devel* lua-devel* libcddb wget ...
1
vote
0answers
18 views

How do I extract files from one tarball to another tarball in one step?

I have some fairly large tarball archives, from which I need to extract some files. I will later repack those files to transfer them to another server. Currently that is a two (multi) step process for ...
39
votes
4answers
46k views

How to password protect gzip files on the command line?

I want to create some tar.gz (and possibly tar.bz2) files, using the tar command on Ubuntu 10.04. I want to password protect the file. What is the command to do this (I have Googled, but found ...
0
votes
0answers
15 views

Why does removing a dash break tar?

I was receiving an error ("Exiting with failure status due to previous errors") when I ran this command: tar -cvfz output.tar.gz folder/ But I did not receive an error when I removed the - from in ...
1
vote
1answer
20 views

How to find tar format of archive?

There are several formats of tar archives, ustar, gnu, etc. Is there some tool that can show which format a given archive is in? (Haven't found it in manpage of bsdtar nor in info pages of GNU tar). ...
1
vote
0answers
9 views

Splitting tar archives and uploading them one at a time

I want to backup my systems to split tar archives with a script uploading them one by one. It has to create the split archive and then run a script. The script uploads the part and deletes it. This is ...
2
votes
1answer
26 views

Pull root image from remote linux

I have switches running PicOS-Linux. This pretty much Linux with Open vSwitch and Busybox. Updates are handled by loading an image of the full file system. So a system image is pretty much just a ...
1
vote
1answer
26 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
5answers
21k views

Extract 7z files with standard linux tools?

I know that you can extract .7z files with 7-zip. Is there another standard linux program that can do this? Maybe one of these tar bzip2 xz gzip I will add that bsdtar can do this, but is not ...
1
vote
1answer
26 views

Extracted files not recognized

I extracted a tar.gz file with 7-Zip. It worked fine, all the files and folders are now visible and have names, different size and so on, yet I cannot open them. And the icons are all the same - a ...
0
votes
1answer
183 views

create tar with multiple directories and file locations

I have some scripts and files located in various locations like /etc/dir1 /var/www/html /home/somedir I want to make a tar so it copies files and folders with location structure and when I untar on ...
1
vote
6answers
5k views

how to copy entire linux root filesystem to new hard drive on with ssh and tar

I know I've found this information before, but can't remember the right google query. I need to transfer an entire linux root filesystem off of a failing hard drive onto another computer with an ...
11
votes
5answers
2k views

Map “untar” to tar xvfz?

How can I map 'untar' as a command to 'tar -xvfz' ? Sorry, but I almost always forget the arguments necessary to 'tar' for this operation.
0
votes
1answer
43 views

Extract specific folder from a tar.gz

I know this question was previously asked on this site before like here 1 and here 2 but no success for me. I want to extract the Measures folder from my S012011_csv.tar.gz zipped file. If I do tar ...
1
vote
5answers
5k views

How can I run the “tar -czf” command in Windows?

I am currently running a computer which has access to only Windows. I have to submit a folder after running tar -czf on it. How can I do this in Windows, do I have any options?
163
votes
17answers
13k views

What is the advantage of using 'tar' today?

I know that tar was made for tape archives back in the day, but today we have archive file formats that both aggregate files and perform compression within the same logical file format. Questions: ...
2
votes
0answers
158 views

tar: Cannot create symlink : File exists

I backup lots of gigebytes files in to myproject.tar.gz, and compress success without errors. Now, I want to decompress all to an folder "myprojects". adan@adan-Latitude-D630:~$ tar zxf ...
0
votes
0answers
53 views

Tar a very large file directly to a drive

I was running my code to download some data on the Amazon cloud. The instance that I was running had an 8GB storage that I had bought with it plus 140GB extra instance storage (sort of plugged in as a ...
3
votes
1answer
47 views

Why does tar with -z option create archive with different hash everytime

Can you tell me why tar czf archive.tar dir creates archive with different hash everytime (I check with 'md5sum') Without compression parameter -z or with parameter -j instead all works fine. ...
0
votes
2answers
2k views

How to recursively extract all .tar and .tgz file zipped in a .tgz file using 7zip command line version

I'm using 7zip cmd line version in my app (written in Python on Win 7 box) to extract .tgz files. Although I'm using the -r switch, the .tar and .tgz subdirectories are not extracted. Can someone tell ...
1
vote
2answers
50 views

extract archived .bz2 files inside a .tar archive with a single command

i need to decompress .bz2 files inside a .tar archive (two step decompression) For example: requested_files_1.tar has multiple .bz2 files inside. How can I extract them with a single ...
0
votes
1answer
34 views

Sqoop Tar ball unpacking

I'm working through the installation directions for Sqoop: Sqoop server supports multiple Hadoop versions. However as Hadoop major versions are not compatible with each other, Sqoop have ...
16
votes
7answers
13k views

How can I create a zip / tgz in Linux such that Windows has proper filenames?

Currently, tar -zcf arch.tgz files/* encodes filenames in UTF, so Windows users see all characters spoiled in filenames which are not english, and can do nothing with it. zip -qq -r arch.zip files/* ...
0
votes
0answers
35 views

redirect tar notices when used with pipe

I have a remote backup cron script that contains the following line: cat ${list} | xargs tar Jlcf - | ssh -i /root/.ssh/backup \ seron@dummy.net "backup_${DATE}.txz" It gives tar a list of ...
2
votes
2answers
75 views

How to extract tar file on Windows, when the filenames include a colon?

I have a tar(.gz) file created on a Linux system, and the filenames contain colon characters. The tar utilities I can find on Windows don't extract these files at all. How can I do this, ideally ...
-1
votes
1answer
41 views

Backing up a directory of data incrementally in linux

I have a directory full of files that remain relatively static. However, some files are moved between subdirectories. I create a full backup every month of this data because it's a lot of data. I'd ...
0
votes
3answers
303 views

How can I create a tar file from a list of files in another tar file?

I have a process that creates a tar file with copies of files that need to be updated. I want to backup existing files before overwriting with the new files. I've tried tar cf backup.tar -T `tar ...
1
vote
1answer
75 views

in place refreshing of a large tar.gz?

I have a directory with about 300Mb of code and data, and I need to regularly change a few lines of code in a few of the files and repackage the directory into a new project-version.tar.gz. It takes ...