UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 27th, 2004, 12:17 AM
kwik222 kwik222 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 77 kwik222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 22 m 39 sec
Reputation Power: 5
help with .tar.gz

i unziped the following file

tmp/tmpdir/letters.tar.gz

using tar xvf letters.tar , but i can't find the files after theyve been uncompressed.... any suggestins

Reply With Quote
  #2  
Old July 27th, 2004, 05:54 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
you cannot unzip a file using tar !
1) mk a new dir and cd to it, you never know what you is in the
file, cp the file here: g.e: mkdir aaaa; cd aaaa; cp ../fileXX .
2) unzip the file, the cmd: file filename
show you wich cmd is to use (.gz can be a zipped file)
unzip xxx.tar.gz give you a xxx.tar file
3) untar the unzipped file
a) first loock what kind of files are in, using
tar tfv xxx.tar
b) if ok (i hope they are NOT absolute path)
extrac the files using
tar xfv xxx.tar
this give you a xxx directory or a lot of files

Reply With Quote
  #3  
Old July 27th, 2004, 06:54 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Code:
tar xvfz filename.tar.gz     #provided compression is compatible

-Steven

Reply With Quote
  #4  
Old July 27th, 2004, 07:33 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
which OS && tar ?

Reply With Quote
  #5  
Old July 27th, 2004, 08:08 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
see, those are the questions (-in answer to questions) that get asked too often. Someone wishes to know a certain something and firmly believes that others on a forum have telepathic powers at their disposal. Either that or they believe that their little unix and userland cosmos are the only possible constellation. That coupled with an obstinate refusal to read any form of documentation on tools like 'tar' before wildly wielding them about in the adamant supposition that it must function as they presume (read guess), leads to terribly long and drawn out Q&A sessions. Don't get me wrong, I am all for intuitive software, but in this case, where we can be fairly certain that the download site of letter.tar.gz explained how to extract the files (and more importantly how to run checksum to ensure that they are not corrupt after transfer) it becomes very difficult to remain objective.

Therefore, considering this, perhaps you will understand my reaction to the original post: "SPLAT" there is "an answer", in the same manner as the question was "SPLAT" posted!!

I found your answer very detailed and containing many important points, the questions are: was it appreciated? were those points understood?

apropos: there are rootkits around for certain versions of 'file' (at least for FreeBSD), so make sure you are using a current version (I think version 4 is ok).

-Steven

Reply With Quote
  #6  
Old July 27th, 2004, 08:39 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
stevengs
can you accept it:
- my (solaris) tar does NOT support the 'z' opt
- i newer saw a 'tar z'
- i cannot install||use an exotic tar (company policy)
thank you

Reply With Quote
  #7  
Old July 27th, 2004, 09:18 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Dear Mr. Guggach,

I did not mean to invalidate your question regarding the os and versions. The question was absolutely necessary. The fact is, it should not be necessary but we seem to have to ask it all too often. Everyone seems to disregard the newbie stickys explaining how to post a question in a sensible manner, that these questions become dispensible as they have already been answered. I use Solaris myself occasionally, so I understand that the -z will not work with the native tools. The probability that the -z will not work for kwik222 is also relatively high, which might possibly cause him to consider for a moment, that his unix universe is only one of many possible ones. His next thread might, in light of this, contain a little more background. That will save you (us) a lot of footwork. Instead of a long arduous post, covering and explaining all the possibilities, you (we) could answer with a smart one-liner.


I know you can't use it, but just for the record:

Code:
## from the manpage of ##
## GNU tar version 1.13.25 ## 
 -z
 --gzip
 --gunzip                    Filter the archive through gzip(1).
 --use-compress-program program
                             Filter the archive through program (which must
                             accept -d to mean ``decompress'').

The same can be achieved with other means, a pipe, or, as you suggested, simply by decompressing it first, etc.


-Steven

Reply With Quote
  #8  
Old July 27th, 2004, 10:13 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
GNU software is available for Sun - check the www.gnu.org site.

Reply With Quote
  #9  
Old July 27th, 2004, 11:41 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
yes, but he mentioned that the company policy forbids adding software at will:

Quote:
- i cannot install||use an exotic tar (company policy)

gnu isn't considered exotic in my book, but I reckon others feel differently about it, which is fine. It probably saves the hassles involved when everyone wants to install their personal favourite tools.


-Steven

Reply With Quote
  #10  
Old July 27th, 2004, 05:26 PM
kwik222 kwik222 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 77 kwik222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 22 m 39 sec
Reputation Power: 5
So im still not getting what i want::

I copied this contents of /tmp/tmpdir/letters.tar.gz to a subdirectory in your home
directory but i can't get to uncompress to find the contents of this file ??

Reply With Quote
  #11  
Old July 27th, 2004, 05:31 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
well, since you can't use the "file" program to figure out what type of compression was used, try gzip:

Code:
gzip  -d  letters.tar.gz


that should leave the file looking like this:

letter.tar

(if not, try gunzip.)


then run tar on the file:

Code:
tar  xvf  letters.tar


afterwards, I'd recommend reading the first few pargraphs of manpages of these tools so you have an idea of what they are actually doing. Blindly following directions is not going to help you later... and unpacking a tar'd and gzip'd file is actually among the simplest of tasks. Learning how to use and understand the manpages on the other hand is of key importance in unix.

Code:
man man


-Steven

Reply With Quote
  #12  
Old July 28th, 2004, 09:36 PM
kwik222 kwik222 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 77 kwik222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 22 m 39 sec
Reputation Power: 5
Got it Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > help with .tar.gz


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |