=?iso-8859-1?Q?Jos=E9?= Albores wrote the following:
>
> Very newbie questions:
> I downloaded man pages in spanish hoping they'll be easier for me than
> english ones. They came with names:
> manpages-es-0_5a_tgz.1
> ..._tgz.2
> etc...
> As I know that files.gz (when they're text files) may be read with the
> command (please correct me if I'm wrong):
> # zless file.gz
> and I may decompress them with:
> # gzip -d file.gz
>
> ... I have some questions about this issue:
> 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?
tar is an archive format like lha or zip except it doesn't compress.
gzip does the compression. unlike with gzip a tarball (as it's commonly
called) does not need to have a particular extension in order to work.
It's nice to have one there so that ppl know what it is but it's not
mandatory.
To view the contents of the tarball (ie the listing of files) you do:
tar -tvf <tarball>
> 2. How can I de-compress these files (both .gz and .tar) to a /temp
> directory without deleting the original ?
cd /temp
tar -xzvf <tarball with the full path>
> 3. The decompressing process with files.tgz : must be a two steps one?
> First "gzip -d" and later "tar" ?
Nope. With the 'z' option tar will spawn a gzip process itself and use
the output of that.
--
CaT ([EMAIL PROTECTED]) URL: http://www.zip.com.au/dev/null
There was farting in the air that night,
It lit so bright,
Fernando...