Decompressing Tar Archives (Finally!)

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Decompressing Tar Archives (Finally!)
# 1  
Old 03-21-2009
Computer Decompressing Tar Archives (Finally!)

If you've come across this problem with unzipping/decompressing zips, you might find this helpful:

I was having a little trouble with unzipping (decompressing) tarred archives under OS 10.5 until today. My first attempt was to just simply double-click on the zip file (i.e., example.tar.gz) and allow the file to unpack, but I ran into an error message which was an "error-1, not permitted to open). I was stumped and thought it might have been the (desktop) location in which I had the file resting in. So I moved the file to root hoping it's containment might be a little more refined, obviously this had nothing to do with it, I got the same error results here also. The file was about 48Gb in size and took quite a while to unpack. Final move was to just simply utilize "Stuffit Expander," and this did the trick.
I took the tarred file and dropped it onto the Stuffit Expander shortcut in my dock and apps launched, it created a receptacle for the files to be unpacked and began unpacking them in the receptacle. Pretty sweet!
Smilie Smilie Smilie


P.S. For all you guru's who may have already figured this one out, hats off. Sorry I'm a bit slow getting back to this, despite it's simplicity. Smilie
# 2  
Old 03-21-2009
Using command line makes this task a lot simpler:
Code:
# gunzip -c filename.tar.gz | tar xvf -

This uncompresses and extracts the contents of the tar file in one go and leaves the original *.tar.gz file still compressed.
# 3  
Old 03-30-2009
Thanks Tony, I'll give this a shot. I think this is a bit more concise and keeps one within terminal to handle the file(s).

Last edited by unimachead; 03-30-2009 at 05:18 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Tar archives monthly

Hi, I want to archive files by month, is there anyway of this code looks better? find /tmp/w/ -type f -newermt '2014-01-01' ! -newermt '2014-02-01' | xargs tar -czvf files01.tar find /tmp/w/ -type f -newermt '2014-02-01' ! -newermt '2014-03-01' | xargs tar -czvf files02.tar find... (9 Replies)
Discussion started by: prpkrk
9 Replies

2. UNIX for Advanced & Expert Users

Multi-Volume tar archives. [solved]

Hi, The only off-line storage medium I have is DVD. I am trying to back up around 10G of data and if I can achieve a practical solution I will use it more generally. I am currently considering something along the lines of: tar --create --multi-volume --tape-length=nnnn <pathspec> |... (0 Replies)
Discussion started by: MikeGM
0 Replies

3. UNIX for Dummies Questions & Answers

Find Multiple Strings from a list of *.gz files withour decompressing...

Hello Team, There is this situation where there are around 20 *.gz files and i want to search multiple words from all those files. Example as below : filea.gz fileb.gz filec.gz now i want to search words "hi" and "hello" from all these 3 files without... (4 Replies)
Discussion started by: varun87
4 Replies

4. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

5. Shell Programming and Scripting

Create unique tar archives from a list of directories

I'm looking to archive a client directory from a CIFS share There are multiple directories that will be stored in a text file and I'm looking to create an individual tar archive of each folder in the directory. I've tried a number of commands to no avail. Here's what I would like. ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

6. Solaris

read a compress file without decompressing it

If we have a zip file and we don't have enough space on the disk to unzip it but we want to be able to just read the file like if we can use cat without decompressing it. Is there a way we can do that? Like if we want Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies

7. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

8. Shell Programming and Scripting

To view .gz files without decompressing it

hi, I have a file called Archiver1.gz how to view this file without doing gunzip on it i.e. decompressing it i tried this command but its not working: gzcat Archiver1.gz | tail -10 (4 Replies)
Discussion started by: ali560045
4 Replies

9. UNIX for Dummies Questions & Answers

segmenting tar archives

assuming i need to create a tar archive which would turn out to be bigger than 2gb, how could i segment the archive into say, 1 gb parts? (3 Replies)
Discussion started by: crudealien
3 Replies

10. UNIX for Dummies Questions & Answers

tar archives

I have a tar archive which I believe may be corrupted, produced on an HP-UX 10.x box and written to a 4mm DDS-3 tape. I understand that gnu tar has a -W (--verify) option which will attempt to verify the archive after it has been created. Am I right in saying that this option cannot be used to... (4 Replies)
Discussion started by: sam_pointer
4 Replies
Login or Register to Ask a Question