home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / misc / 3617 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  2.3 KB

  1. Path: sparky!uunet!mcsun!ub4b!rc1!eluyten
  2. From: eluyten@rc1.vub.ac.be (Eric Luyten)
  3. Newsgroups: comp.unix.misc
  4. Subject: Re: Help: *.tar.Z
  5. Message-ID: <731@rc1.vub.ac.be>
  6. Date: 10 Sep 92 16:39:37 GMT
  7. References: <4SEP199214143882@envmsa.eas.asu.edu> <BuByFs.AzE@unx.sas.com>
  8. Sender: news@rc1.vub.ac.be
  9. Distribution: world
  10. Organization: Brussels Free Universities (VUB/ULB), Belgium
  11. Lines: 43
  12. Keywords: tar
  13.  
  14. In article <BuByFs.AzE@unx.sas.com>, sasmob@chewy.unx.sas.com (Mark C. Burhans) writes:
  15. |> 
  16. |> First, put the filename.tar.Z in it's own directory; and 'cd' into that
  17. |> directory; you never know what the heck is in those things.<GRIN>
  18.  
  19. tar files can contain absolute filenames (starting with '/'), resulting in files being
  20. created *OUTSIDE* your current working directory. Some versions of tar have an 's'
  21. flag to have that '/' stripped before actually extracting the file.
  22.  
  23. |> Second, uncompress that puppy:
  24. |>   uncompress filename.tar
  25. |> Third, untar that rascal:
  26. |>   tar -xfo filename.tar
  27.  
  28. First, look what's in it.
  29.  
  30. tar tvf filename.tar | more                                  (t stands for 'table')
  31.  
  32. |> You *will* need to use those switches (-xfo)!  Why?
  33. |>   -x    ------ Extract files
  34. |>   -f    ------ Data is in a file, not on tape.
  35. |>   -o    ------ Data that is extracted is now owned by *me*.  This one is
  36. |>                extremely important when you realize you've untarred a
  37. |>                subdirectory that has read-only permission and it belongs
  38. |>                to some user name JES8234abq and in this read-only
  39. |>                directory is a read-only file named 'hermit' that also
  40. |>                belongs to JES8234abq and is 2.31 Megabytes!!!
  41.  
  42. In most cases where I found myself confronted with this problem, the directory
  43. gets created, is not owned by you, and unless 'others' have write permission, the
  44. 2.31 MB file will not be created. The directory can be removed by yourself, as
  45. you presumably have write permission in the directory where you invoked tar.
  46.  
  47. |> Now you have all these new files along with the original filename.tar.
  48. |> Whether these files are 'executables' or not should be explained in an
  49. |> untarred README-type file.
  50.  
  51. Or use the 'file' command.
  52.  
  53. |> ---Mark C. Burhans---sasmob@chewy.unx.sas.com---919/677-8001 ext 7324
  54. |> SAS Institute, Inc., USA, SAS Campus Drive, Cary, NC 27513.
  55.  
  56. Eric.
  57.