Re: new bie (tar command)

2003-02-22 Thread Saint Aardvark the Carpeted
Anil Garg disturbed my sleep to write:
 p.s. i looked earlier at -t, infact i was also trying to use -x with -t.

Logical enough, but not correct.  -t and -x are mutually exclusive.  -t means
just list the contents; -x means extract the contents (ie, get files out of
the tarball).  The tar command won't let you do both.

Hope this helps,
Hugh
-- 
Saint Aardvark the Carpeted
[EMAIL PROTECTED]
Because the plural of Anecdote is Myth.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


new bie (tar command)

2003-02-21 Thread Anil Garg
How can i see the contents of a .tar or .tgz file without extracting
it.( i couldnt find that in man tar)

Thanx 
anil (FreeBSD user)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: new bie (tar command)

2003-02-21 Thread Rus Foster
On Fri, 21 Feb 2003, Anil Garg wrote:

 How can i see the contents of a .tar or .tgz file without extracting
 it.( i couldnt find that in man tar)

 Thanx
 anil (FreeBSD user)


tar -tf archive.tar or tar -ztf archive.tar.gz

Rgds

Rus
--
http://www.65535.net | MSN: [EMAIL PROTECTED]
Lifetime Linux or FreeBSD account: $100 || Lifetime Hosting: $150
Offsite Backups - Remote System Monitoring - Email Hosting


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: new bie (tar command)

2003-02-21 Thread Willie Viljoen
On Friday 21 February 2003 20:29, Anil Garg wrote:
 How can i see the contents of a .tar or .tgz file without extracting
 it.( i couldnt find that in man tar)

tar -ztvf tarball.tgz

Incidentally, this is in the man page :)

   -t
   --list List the contents of an archive; if filename arguments are
   given, only those files are listed, otherwise the entire
   table of contents is listed.



 Thanx
 anil (FreeBSD user)

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue, Universitas
Bloemfontein
9321
South Africa

+27 51 522 15 60
+27 51 522 44 36 (after hours)
+27 82 404 03 27 (mobile)

[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: new bie (tar command)

2003-02-21 Thread Cliff Sarginson
On Fri, Feb 21, 2003 at 01:29:41PM -0500, Anil Garg wrote:
 How can i see the contents of a .tar or .tgz file without extracting
 it.( i couldnt find that in man tar)

Mmm.. from man tar

-t
--list  List the contents of an archive; if filename arguments are
given, only those files are listed, otherwise the
entire table of contents is listed.
 
On or around the 2nd page.

-- 
Regards
   Cliff Sarginson 
   The Netherlands

[ This mail has been checked as virus-free ]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: new bie (tar command)

2003-02-21 Thread Nathan Kinkade
On Fri, Feb 21, 2003 at 01:29:41PM -0500, Anil Garg wrote:
 How can i see the contents of a .tar or .tgz file without extracting
 it.( i couldnt find that in man tar)
 
 Thanx 
 anil (FreeBSD user)

take at look at the -t option in the tar manpage.

Nathan

-- 
GPG Public Key ID: 0x4250A04C
gpg --keyserver pgp.mit.edu --recv-keys 4250A04C
http://63.105.21.156/gpg_nkinkade_4250A04C.asc



msg20185/pgp0.pgp
Description: PGP signature


RE: new bie (tar command)

2003-02-21 Thread Anil Garg
thanx

anil

p.s. i looked earlier at -t, infact i was also trying to use -x with -t.

-Original Message-
From: Willie Viljoen [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 1:39 PM
To: [EMAIL PROTECTED]
Subject: Re: new bie (tar command)


On Friday 21 February 2003 20:29, Anil Garg wrote:
 How can i see the contents of a .tar or .tgz file without extracting
 it.( i couldnt find that in man tar)

tar -ztvf tarball.tgz

Incidentally, this is in the man page :)

   -t
   --list List the contents of an archive; if filename arguments
are
   given, only those files are listed, otherwise the
entire
   table of contents is listed.



 Thanx
 anil (FreeBSD user)

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
Willie Viljoen
Freelance IT Consultant

214 Paul Kruger Avenue, Universitas
Bloemfontein
9321
South Africa

+27 51 522 15 60
+27 51 522 44 36 (after hours)
+27 82 404 03 27 (mobile)

[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message