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