a utility to archive files into a sequential stream, then commonly placed into one file on disk (previously tapes, hence the name, Tape ARchive)

learn more… | top users | synonyms

150
votes
6answers
246k views

How do I uncompress a tarball that uses .xz?

I'm used to extracting tarballs with a -xfz flag, which handles gzip and bzip2 archives. Recently I've run into a .tar.xz file and I would like to uncompress it in one step using tar, how can I do ...
129
votes
2answers
200k views

How to extract files to another directory using 'tar' command?

I think tar archive.tar /users/mylocation will work. But it doesn't. How can I do that?
27
votes
3answers
53k views

In SSH, how do I mv to my local system?

Probably bad searching/not knowing the terminology, but: I've managed to ssh into my webhost's directory for me, and tar the webapp I want to back up and download. But when I try to mv to ...
25
votes
4answers
15k views

What's the best way to use parallel bzip2 and gzip by default?

Bzip2 and gzip only use one core, although many computers have more than one core. But there are programs like lbzip2, pbzip2 and pigz, which use all available cores and promise to be compatible with ...
15
votes
2answers
667 views

What is the difference with all the different types of .tar archives?

Could anyone tell me what is up with so many archives, and how are they differ? There's at least five that I can think of, .tar.tz, .tar.gz, .tar.bz2, .tar.lz, .tar.z Which is best for what ...
12
votes
3answers
34k views

how to extract tar.7z files from command line? [duplicate]

Is there a way to extract files of tar.7z format using command line tools in Ubuntu?
12
votes
3answers
4k views

Any linux command to perform parallel decompression of tar.bz2 file?

I have a rather large file (~50GB) and it takes some time to run tar xvf file.tar.bz2 on it. I'm aware of programs that can do parallel compression for bzip2 files but unaware of programs that can ...
11
votes
1answer
467 views

Restoring a Unix Tar File with Ubuntu

I have all of these old DDS3 and DDS4 tapes that I need to restore the files off of. The only information that I really know is that they were put on the tapes about 10 to 20 years ago using Digital ...
10
votes
1answer
16k views

How do I extract a specific file from a tar archive?

Hi is possible to restore a single file from the .tar backup ? I dont want to restore total backup . i just want to restore one single file from the backup .
10
votes
3answers
1k views

Using tar and rsync for high availability

I have Ubuntu cloud servers running which I don't have direct access to but with ssh. I'm using 'tar' to clone or to have high availability of this server. I followed the tutorial from the link [link ...
9
votes
2answers
35k views

Compress in .tgz

I want to compress files in .tgz. I know how to make tar.gz(with tar and gzip) and some people say it is almost the same, but I need to make a .tgz, how??
8
votes
2answers
11k views

How can I update a tar.gz file?

I have created a tar.gz file (using the GUI, not the command line). How can I update it with a command that new files are added and modified files are updated, too?
7
votes
2answers
5k views

How do I create tar.7z file from the command line?

I would like to zip up my homework from last year. How do I tar and zip the whole folder from command line Ubuntu (I don't have GUI).
7
votes
2answers
9k views

Encrypt tar.gz file on create

I have a script which creates a nightly backup of several directories. It is created using tar -czf, and the destination tar.gz file path is on a mounted network directory. The resulting file is ...
7
votes
2answers
425 views

Extract only the contents of an archived directory from within an archive

The Situation I am extracting a CMS from drupal-7.15.tar.gz to /var/www. When extracted normally (with tar -xvzf filename.tar.gz) the files end up in /var/www/drupal-7.15/ The Goal I want the ...
6
votes
3answers
4k views

What does tar's -p (preserve permissions) flag actually preserve?

What does the -p flag actually preserve when creating and extracting a tarball? Is it the rwx permissions it preserves? When I created a htdocs/ tarball owned by root, extracting it to my local ...
6
votes
2answers
1k views

Can I safely remove a tar archive after extracting it?

Or am I supposed to save them for some reason?
5
votes
2answers
127 views

What is going on with my TAR script?

This might do better at StackExchange but I use Ubuntu as my file server. So I'm trying to use tar and gzip to only backup the last 6 months of changes on my file server and it isn't working. It ...
5
votes
1answer
445 views

How to archive with ignoring files larger than 100MB

I'm trying to archive files with tar and ignoring files larger than 100MB. Is that possible? PS: Not have to use tar.
5
votes
3answers
20k views

How to uncompress separated tgz files?

I am receiving error message as: tar -zxvf OVM_EL5U3_X86_EBIZ12.1.1_DB_VIS_PVM.tgz.1 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now file ...
5
votes
1answer
49 views

How can I build an installer by tracking filesystem changes?

Ages ago I used to package software on Windows using InstallShield AdminStudio. I used it for building customized installers for company applications from existing app installers. I'd like to do ...
5
votes
3answers
1k views

How do I install the Sun Java Development Kit (JDK 7)?

How to install JDK 7 on Ubuntu? The installation should be with the tar archive. I know the basic installation with the bin, but how to do with only a tar archive?
4
votes
5answers
1k views

What is the difference between different “compression” systems?

I've always used TAR and ZIP for compression, but recently I have heard about the *.Z compression algorithm. This brought up a question for me: With all of these compression systems, which one is ...
4
votes
3answers
1k views

What's the difference between a compressed folder (with files) and a compressed Tar archive?

I don't understand the use of TAR. My understanding is it pulls together many files into one file. But doesn't putting files in a folder do this? Using ZIP, I put files I want to archive in a folder ...
4
votes
2answers
3k views

How to make a bash script generate a new filename every time it's run?

I'd like to make a .tar file of a particular directory every day of the week. The way I'd like to do it is with a bash script making a tar file every day with crontab. I was wondering, is there a ...
4
votes
2answers
3k views

Is there a way to `tar` extract without clobbering

Is there a way to tar extract without clobbering? I am installing 12.04 and want to restore my data from 10.10. Anything 12.04 specific I would like to keep, that is I do not want the tar'd 10.10 ...
4
votes
2answers
270 views

how would I create a tar without using sudo?

If I tar my /home/username and create the .tar file in /home/username, then I get an error of the sort . file changed as we read it probably because the directory file itself is changing due to the ...
4
votes
2answers
2k views

why does tar . see hidden files but ls . does not?

Why does tar cvpfz /tmp/backup.tgz . backup hidden files? (Note ls . does not see the hidden files. Trivia: there are ways to see hidden files such as with ls -a but this is just trivia. The ...
4
votes
1answer
13k views

How to install a tar.bz2 package

How can I install a tarbz2 package. Example: I have downloaded firefox 8 tar.bz2 . I want to know a general method for installation of tar.bz2 package.
4
votes
1answer
60 views

what happens if i delete a file while tar is processing it?

I am attempting to backup my filesystem with the following command: tar -cvjf /fs.bz2 --exclude=/fs.bz2 --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys / This command has been ...
4
votes
1answer
167 views

Can I tar the whole system, clear everything and untar it back?

I have to do the whole system cleanup, deleting and recreating all partitions. I'm wondering if I could simply tar all my / (excluding proc, sys and mnt) into archive and then untar it into clear ...
3
votes
3answers
597 views

Open pdf in tar.gz without extracting

I have a tar.gz which have pdfs in it I want to open a specific pdf without extracting it Is this possible using terminal through some command (I know we can do it using GUI but I want to use ...
3
votes
4answers
291 views

How to tar the n most recent files with spaces in filename?

I am trying to create a script that foreach directoy in the folder folder, only the n most recent files are to be compressed. However, I am having trouble with the multiple word files. I need a way ...
3
votes
2answers
7k views

sudo tar cvpzf exiting with failure due to previous error

I looked at the other question addressing this issue but I think I might have a different setup. I too am trying to backup my Ubuntu machine, but here is the difference. I used Wubi to install Ubuntu ...
3
votes
3answers
342 views

Creating tar fills system cache

My situation is pretty simple: I backup-ed some of my documents and put them on a NAS and since I rather transfer one big file instead of million small ones, I created a tar tar cf ...
3
votes
3answers
3k views

Installing μTorrent

Hello i'm trying to install uTorrent to my Ubuntu 11.04 I'm downloading it from here . But it's a .tar.gz file. I'm untaring it with tar -xzvf utorrent-server-3.0-25053.tar.gz command. But there ...
3
votes
3answers
3k views

Installing software without Ubuntu Software Center

I have a file downloaded from the Internet. To be specific I downloaded Code::Blocks from its official site. The file name is codeblocks.tar.bz2. If I don't have Internet connection and also ...
3
votes
1answer
103 views

What is the difference between a deb package and a binary package? [duplicate]

I am not sure if it's true to say when you download a package from Ubuntu repository, then that it will be a debian package and if you download only a tar file and use make command to install it, than ...
3
votes
1answer
64 views

Move GZ archives with specific content

After a restoration of my HDD with PhotoRec I have a folder with 36,500 GZ archives. Of those, around 200 are very important for me. Each of these archives contains exactly one TAR archive. These TAR ...
3
votes
1answer
12k views

tar Exiting with failure status due to previous errors

I am trying to backup my Ubuntu workstation by the help of this guide and are running into trouble as the tar command outputs Exiting with failure status due to previous errors. Here's what I ...
3
votes
1answer
3k views

I am trying to install a compressed package ending in .tar.gz and I am getting an error saying that it is not in the right format,

I am new to Ubuntu and after doing some research I still can't figure what I am doing wrong. I am downloading the a package ending in .tar.gz,then I when I try to use; tar -xvf ...
3
votes
1answer
260 views

Removing a tree

CODE EDIT So now that I'm off work I can do a little coding in my free time. The way that I think I want this to work is take a tarball (what I would normally extract to a folder anyway) and compare ...
2
votes
2answers
12k views

cannot install application from source using tar.gz archive

I tried to install utimer (https://launchpad.net/utimer) by following the below steps. $ tar -zvxf utimer-0.4.tar.gz $ cd utimer-0.4 /utimer-0.4$ ./configure /utimer-0.4$ ls aclocal.m4 autogen.sh ...
2
votes
2answers
17k views

How to install TestDisk from source

I have just come downloading a software called testdisk-6.14-WIP.linux26.tar.bz2. Therefore I'm wondering how to deal with the installation.
2
votes
1answer
1k views

Can't un-tar LibreOffice 4 download

I've tried this guide How do I install LibreOffice 4? But I get this message Can someone please explain why this is happening? And can someone tell me how to download it?
2
votes
4answers
179 views

Which kind of installation files should you prefer - .deb or tarball files? And why?

I have just starting Ubuntu as my primary OS and everytime I have to install something I generally try to find .deb files as that seems convenient, but someone on another forum told me I should always ...
2
votes
1answer
11k views

“Cannot open: Permission denied” when creating a tar file

I need to to create a archive from my ftp server (all of the /usr/src/ directory) using tar command. However I keep getting permission denied error. Here is step by step what I am doing: ...
2
votes
1answer
2k views

my tar command line is not working it won't unzip files

when I try using tar -xvj [file name] then hit enter it just hangs and does not unzip file.. I've tried zipping just a really small text file and it zipped into a .tar.bz file then when I tried to ...
2
votes
2answers
5k views

tar: A lone zero block at 343398

while trying to extract a tar.gz file in ubuntu terminal an error happened int he last sentence here it is : tar: A lone zero block at 343398 what is the solution for this problem???
2
votes
1answer
133 views

What happens when I drop a file on archive in Nautilus?

I had this file structure: 2000/ 001.txt 002.txt 003.txt ... 2001/ ... 2002/ ... ... 2011/ I guess file structure doesn't matter, but anyway... So folders are representing couple of ...