On Sun, 20 Sep 1998, [iso-8859-1] Jos� Albores wrote:

> 1. How can I read contents of files with extension .tgz and tgz.1 (or
> must I rename the latter .tgz.1 to .tgz) , suppossing they're text
> files?

AFAIK, you can't read them except by decompressing them and then reading
the decompressed files.  mc will do this for you and clean up nicely
afterwards.

> 2. How can I de-compress these files (both .gz and .tar) to a /temp
> directory without deleting the original ?

cd /tmp
tar -zxvvf file.tgz

(z = gzip, x = extract, vv = very verbose, f = read from file (instead of
stdin)).

Old versions of tar do not support the -z option, so you had to use:
gzip -cd file.tgz | tar -xvv

HTH

--
Mike <[EMAIL PROTECTED]>

Silence is the element in which great things fashion themselves.
                -- Thomas Carlyle

Reply via email to