home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / misc / 22148 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.5 KB  |  48 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!news.claremont.edu!ucivax!ucla-cs!ucla-mic!ucla-physics!aoki
  3. From: aoki@physics.ucla.edu (Ken-ichiro Aoki)
  4. Subject: GNU tar (was Re: su File Viewer)
  5. Message-ID: <1992Nov19.231320.14356@physics.ucla.edu>
  6. Summary: GNU tar does the job, as usual.
  7. Keywords:  GNU tar
  8. Organization: UCLA Department of Physics
  9. References: <BURNS.92Nov19132017@bobcat.cc.gatech.edu>
  10. Distribution: usa
  11. Date: Thu, 19 Nov 92 23:13:20 GMT
  12. Lines: 34
  13.  
  14. In article <BURNS.92Nov19132017@bobcat.cc.gatech.edu> burns@cc.gatech.edu (James E. Burns) writes:
  15. >It's a good idea to know what will happen BEFORE you unpack an unknown
  16. >archive.  I use the following little aliases to inspect things before
  17. >I "untar":
  18. >
  19. ># Show the contents of a *.tar file
  20. >alias showtar    'tar vtf \!:1'
  21. ># Show the contents of a *.tar.Z file
  22. >alias showZ    'zcat \!:1 | tar vtf -'
  23. >
  24. ....
  25.  
  26. I have seen this a couple of times now so I will post rather
  27. than email. You can use GNU tar and say
  28.  
  29. to show the content (verbose)
  30. % tar -vtf foo.tar
  31. % tar -zvtf foo.tar.Z 
  32.  
  33. to unpack
  34. % tar -xf foo.tar
  35. % tar -zxf foo.tar.Z 
  36.  
  37. On NeXTstep3.0, GNU tar 1.10 does come with the system as
  38. /usr/bin/gnutar so you don't have to install it.
  39. Latest version I know of is 1.11.1 which compiles fine on NeXTs.
  40. I don't mean to flame or anything but this may save you some
  41. effort.
  42.  
  43. Another feature I like is that you can do remote tars
  44. using GNU tar, which we use (since we don't have tape
  45. drives hooked up to the NeXTs.)
  46. -- 
  47.                         ___Kenichiro Aoki. (aoki@physics.ucla.edu)
  48.